Skip to content

Commit

Permalink
Fix LGTM alert - useless comparison (#16616)
Browse files Browse the repository at this point in the history
  • Loading branch information
eagleoflqj authored Apr 17, 2020
1 parent 9222e45 commit f549eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libr/util/format.c
Original file line number Diff line number Diff line change
Expand Up @@ -1696,7 +1696,7 @@ R_API int r_print_format_struct_size(RPrint *p, const char *f, int mode, int n)
free (o);
return 0;
}
if (format && newsize > 0) {
if (format) {
size += tabsize * newsize;
}
free (structname);
Expand Down

0 comments on commit f549eb2

Please # to comment.