1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 10:25:37 +03:00

pid1: fix free of uninitialized pointer in unit_fail_if_noncanonical()

https://bugzilla.redhat.com/show_bug.cgi?id=1653068
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2018-12-14 08:16:31 +01:00 committed by Lennart Poettering
parent 0b57803630
commit 58d9d89b4b

View 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);