Commit 2babd200 authored by наб's avatar наб Committed by Brian Behlendorf
Browse files

libzfs: zfs_asprintf(): don't return undefined pointer


Reviewed-by: default avatarBrian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: default avatarAhelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz>
Closes #11993
parent 87b671f3
......@@ -782,8 +782,10 @@ zfs_asprintf(libzfs_handle_t *hdl, const char *fmt, ...)
va_end(ap);
if (err < 0)
if (err < 0) {
(void) no_memory(hdl);
ret = NULL;
}
return (ret);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment