projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b57803
)
pid1: fix free of uninitialized pointer in unit_fail_if_noncanonical()
author
Zbigniew Jędrzejewski-Szmek
<zbyszek@in.waw.pl>
Fri, 14 Dec 2018 07:16:31 +0000
(08:16 +0100)
committer
Lennart Poettering
<lennart@poettering.net>
Fri, 14 Dec 2018 10:21:16 +0000
(11:21 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=1653068
src/core/unit.c
patch
|
blob
|
history
diff --git
a/src/core/unit.c
b/src/core/unit.c
index
1715670
..
35ade55
100644
(file)
--- a/
src/core/unit.c
+++ b/
src/core/unit.c
@@
-4741,7
+4741,7
@@
void unit_warn_if_dir_nonempty(Unit *u, const char* where) {
}
int unit_fail_if_noncanonical(Unit *u, const char* where) {
- _cleanup_free_ char *canonical_where;
+ _cleanup_free_ char *canonical_where
= NULL
;
int r;
assert(u);