projects
/
babeltrace.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix: test_dwarf.c: close() argument cannot be negative
[babeltrace.git]
/
tests
/
plugins
/
flt.lttng-utils.debug-info
/
test_dwarf.c
diff --git
a/tests/plugins/flt.lttng-utils.debug-info/test_dwarf.c
b/tests/plugins/flt.lttng-utils.debug-info/test_dwarf.c
index 953556c41004cf43341d01f25fdacb5dbd397e2a..01a7b5172500d0a1716dd6e038420f8b88eccac6 100644
(file)
--- a/
tests/plugins/flt.lttng-utils.debug-info/test_dwarf.c
+++ b/
tests/plugins/flt.lttng-utils.debug-info/test_dwarf.c
@@
-63,7
+63,10
@@
void test_bt_no_dwarf(const char *data_dir)
if (dwarf_info) {
dwarf_end(dwarf_info);
}
- close(fd);
+
+ if (fd >= 0) {
+ close(fd);
+ }
g_free(path);
}
This page took
0.02344 seconds
and
4
git commands to generate.