projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
compat: work around broken _SC_NPROCESSORS_CONF on MUSL libc
[lttng-ust.git]
/
liblttng-ust
/
lttng-ust-elf.c
diff --git
a/liblttng-ust/lttng-ust-elf.c
b/liblttng-ust/lttng-ust-elf.c
index c073e7a545b64d349d3d7bb56932a24b9025f657..3d6a9379f7a5e44b6837c01fbb5c72a92bd32162 100644
(file)
--- a/
liblttng-ust/lttng-ust-elf.c
+++ b/
liblttng-ust/lttng-ust-elf.c
@@
-250,6
+250,8
@@
struct lttng_ust_elf *lttng_ust_elf_create(const char *path)
goto error;
}
goto error;
}
+ /* Initialize fd field to -1. 0 is a valid fd number */
+ elf->fd = -1;
elf->path = strdup(path);
if (!elf->path) {
elf->path = strdup(path);
if (!elf->path) {
This page took
0.024827 seconds
and
4
git commands to generate.