1
0
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:
Volker Lendecke
2015-06-23 18:29:53 +02:00
parent c17df7c0b1
commit 6404c07266

View File

@ -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);
}