use correct inequality comparison

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
This commit is contained in:
Christian Brauner 2017-12-06 21:22:03 +01:00
parent 6b9be52337
commit 97ebced3e5
No known key found for this signature in database
GPG Key ID: 8EB056D53EECB12D

View File

@ -1388,7 +1388,7 @@ again:
ret = snprintf(offset, 5, "-%d", idx);
if (ret < 0 || (size_t)ret >= 5) {
FILE *f = fopen("/dev/null", "w");
if (f >= 0) {
if (f) {
fprintf(f, "Workaround for GCC7 bug: "
"https://gcc.gnu.org/bugzilla/"
"show_bug.cgi?id=78969");