coverity: #1425735

use correct inequality comparison Signed-off-by: 's avatarChristian Brauner <christian.brauner@ubuntu.com>
parent 6b9be523
...@@ -1388,7 +1388,7 @@ again: ...@@ -1388,7 +1388,7 @@ again:
ret = snprintf(offset, 5, "-%d", idx); ret = snprintf(offset, 5, "-%d", idx);
if (ret < 0 || (size_t)ret >= 5) { if (ret < 0 || (size_t)ret >= 5) {
FILE *f = fopen("/dev/null", "w"); FILE *f = fopen("/dev/null", "w");
if (f >= 0) { if (f) {
fprintf(f, "Workaround for GCC7 bug: " fprintf(f, "Workaround for GCC7 bug: "
"https://gcc.gnu.org/bugzilla/" "https://gcc.gnu.org/bugzilla/"
"show_bug.cgi?id=78969"); "show_bug.cgi?id=78969");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment