mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-05 09:17:44 +03:00
elf-util: add missing assertion
This commit is contained in:
parent
fe8fdc4760
commit
80b241f2ec
@ -689,6 +689,8 @@ int parse_elf_object(int fd, const char *executable, bool fork_disable_dump, cha
|
|||||||
_cleanup_free_ char *buf = NULL;
|
_cleanup_free_ char *buf = NULL;
|
||||||
int r;
|
int r;
|
||||||
|
|
||||||
|
assert(fd >= 0);
|
||||||
|
|
||||||
r = dlopen_dw();
|
r = dlopen_dw();
|
||||||
if (r < 0)
|
if (r < 0)
|
||||||
return r;
|
return r;
|
||||||
|
Loading…
Reference in New Issue
Block a user