summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2009-03-03 08:50:35 -0800
committerJeremy Allison <jra@samba.org>2009-03-03 08:50:35 -0800
commit4b2955aa7dbcf06629d24d3ea35c6dfa8c4156b9 (patch)
tree2540e7eaae32b03cae8d70687289cfc3de529861
parentbe1dfff02d562e42a7847bd02fed8538630d3f41 (diff)
downloadsamba-4b2955aa7dbcf06629d24d3ea35c6dfa8c4156b9.tar.gz
samba-4b2955aa7dbcf06629d24d3ea35c6dfa8c4156b9.tar.bz2
samba-4b2955aa7dbcf06629d24d3ea35c6dfa8c4156b9.zip
Fix "ignore return" warning.
Jeremy.
-rw-r--r--source3/lib/events.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/lib/events.c b/source3/lib/events.c
index 9e81a47796..f875e0dc0c 100644
--- a/source3/lib/events.c
+++ b/source3/lib/events.c
@@ -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);
}