Added handling for bacapp decode value returning error codes.

This commit is contained in:
skarg
2010-10-12 03:02:05 +00:00
parent e9249b5b5e
commit 86dbaf409b
4 changed files with 49 additions and 18 deletions
+5 -3
View File
@@ -76,7 +76,7 @@ static void PrintReadRangeData(
object_value.array_index = data->array_index;
object_value.value = &value;
bacapp_print_value(stdout, &object_value);
if (len) {
if (len > 0) {
if (len < application_data_len) {
application_data += len;
application_data_len -= len;
@@ -84,10 +84,12 @@ static void PrintReadRangeData(
#if PRINT_ENABLED
fprintf(stdout, ",");
#endif
} else
} else {
break;
} else
}
} else {
break;
}
}
#if PRINT_ENABLED
if (print_brace)