1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-25 23:21:33 +03:00

exec-util: initialize new before using it (#7471)

CID #1383004
This commit is contained in:
Evgeny Vereshchagin 2017-11-26 14:46:56 +03:00 committed by Zbigniew Jędrzejewski-Szmek
parent b45f436f61
commit 3f19974091

View File

@ -256,7 +256,7 @@ int execute_directories(
static int gather_environment_generate(int fd, void *arg) {
char ***env = arg, **x, **y;
_cleanup_fclose_ FILE *f = NULL;
_cleanup_strv_free_ char **new;
_cleanup_strv_free_ char **new = NULL;
int r;
/* Read a series of VAR=value assignments from fd, use them to update the list of