From: Lennart Poettering Date: Thu, 29 Nov 2018 10:10:37 +0000 (+0100) Subject: systemctl: make sure we initialize return parameters in unit_file_find_path() on... X-Git-Tag: v240~176^2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f67cb270606c46b3d5700dbea9cde2bc8ff0df63;p=thirdparty%2Fsystemd.git systemctl: make sure we initialize return parameters in unit_file_find_path() on success According to our coding style return values should be initialized when we return any form of success, do so here too. --- diff --git a/src/systemctl/systemctl.c b/src/systemctl/systemctl.c index 328c11a2cd3..490b739f9e4 100644 --- a/src/systemctl/systemctl.c +++ b/src/systemctl/systemctl.c @@ -2443,6 +2443,9 @@ static int unit_file_find_path(LookupPaths *lp, const char *unit_name, char **re return 1; } + if (ret_unit_path) + *ret_unit_path = NULL; + return 0; }