projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: sink.text.pretty: Unsigned compared against 0
[babeltrace.git]
/
plugins
/
text
/
pretty
/
print.c
diff --git
a/plugins/text/pretty/print.c
b/plugins/text/pretty/print.c
index 95189d5e2fda7df18fea904cf87d6d2d4a173248..a53a567f080807189da974f648016acdee8541ff 100644
(file)
--- a/
plugins/text/pretty/print.c
+++ b/
plugins/text/pretty/print.c
@@
-822,11
+822,9
@@
int print_struct(struct pretty_component *pretty,
ret = -1;
goto end;
}
+
nr_fields = bt_field_class_structure_get_member_count(struct_class);
- if (nr_fields < 0) {
- ret = -1;
- goto end;
- }
+
g_string_append(pretty->string, "{");
pretty->depth++;
nr_printed_fields = 0;
This page took
0.02499 seconds
and
4
git commands to generate.