mirror of
https://github.com/samba-team/samba.git
synced 2025-02-23 09:57:40 +03:00
lib/util: Fix cppcheck null pointer dereference warning
lib/util/talloc_report.c:58: warning: nullPointer: Possible null pointer dereference: start <--[cppcheck] Signed-off-by: Noel Power <noel.power@suse.com> Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
parent
8831b06d3d
commit
fd3f37af92
@ -52,6 +52,8 @@ static char *talloc_vasprintf_append_largebuf(char *buf, ssize_t *pstr_len,
|
||||
if (buflen > str_len) {
|
||||
start = buf + str_len;
|
||||
space = buflen - str_len;
|
||||
} else {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
va_copy(ap2, ap);
|
||||
|
Loading…
x
Reference in New Issue
Block a user