Fix "ignore return" warning.
authorJeremy Allison <jra@samba.org>
Tue, 3 Mar 2009 16:50:35 +0000 (08:50 -0800)
committerJeremy Allison <jra@samba.org>
Tue, 3 Mar 2009 16:50:35 +0000 (08:50 -0800)
Jeremy.

source3/lib/events.c

index 9e81a47..f875e0d 100644 (file)
@@ -286,8 +286,9 @@ static void s3_event_debug(void *context, enum tevent_debug_level level,
                break;
 
        };
-       vasprintf(&s, fmt, ap);
-       if (!s) return;
+       if (vasprintf(&s, fmt, ap) == -1) {
+               return;
+       }
        DEBUG(samba_level, ("s3_event: %s", s));
        free(s);
 }