]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
pid1: fix free of uninitialized pointer in unit_fail_if_noncanonical()
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 14 Dec 2018 07:16:31 +0000 (08:16 +0100)
committerLennart 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

index 171567022facf098926b9ed783fc4f8b53f5a1ed..35ade55f239b30b081564678f3bee62499ad74b0 100644 (file)
@@ -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);