mirror of
https://git.proxmox.com/git/systemd
synced 2026-01-19 14:16:43 +00:00
coredumpctl: check return of strndup
This commit is contained in:
parent
45db2956ba
commit
348a25edbb
@ -262,7 +262,7 @@ static int retrieve(const void *data,
|
||||
return 0;
|
||||
|
||||
*var = strndup((const char*)data + ident, len - ident);
|
||||
if (!var)
|
||||
if (!*var)
|
||||
return log_oom();
|
||||
|
||||
return 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user