mirror of
https://github.com/samba-team/samba.git
synced 2025-08-26 01:49:31 +03:00
ldb: Fix a "ignoring return value" warning
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Volker Lendecke <vl@samba.org> Autobuild-Date(master): Wed Oct 28 19:04:15 CET 2015 on sn-devel-104
This commit is contained in:
@ -67,8 +67,12 @@ static void ldb_wrap_debug(void *context, enum ldb_debug_level level,
|
||||
};
|
||||
if (CHECK_DEBUGLVL(samba_level)) {
|
||||
char *s = NULL;
|
||||
vasprintf(&s, fmt, ap);
|
||||
if (!s) return;
|
||||
int ret;
|
||||
|
||||
ret = vasprintf(&s, fmt, ap);
|
||||
if (ret == -1) {
|
||||
return;
|
||||
}
|
||||
DEBUG(samba_level, ("ldb: %s\n", s));
|
||||
free(s);
|
||||
}
|
||||
|
Reference in New Issue
Block a user