From: Zbigniew Jędrzejewski-Szmek Date: Fri, 14 Dec 2018 07:16:31 +0000 (+0100) Subject: pid1: fix free of uninitialized pointer in unit_fail_if_noncanonical() X-Git-Tag: v240~58 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58d9d89b4b41189bdcea86c2ad5cf708b7d54aca;p=thirdparty%2Fsystemd.git pid1: fix free of uninitialized pointer in unit_fail_if_noncanonical() https://bugzilla.redhat.com/show_bug.cgi?id=1653068 --- diff --git a/src/core/unit.c b/src/core/unit.c index 171567022fa..35ade55f239 100644 --- 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);