1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

elf-util: add missing assertion

This commit is contained in:
Yu Watanabe 2022-01-04 02:02:12 +09:00
parent fe8fdc4760
commit 80b241f2ec

View File

@ -689,6 +689,8 @@ int parse_elf_object(int fd, const char *executable, bool fork_disable_dump, cha
_cleanup_free_ char *buf = NULL;
int r;
assert(fd >= 0);
r = dlopen_dw();
if (r < 0)
return r;