From 16259d728e87c10533cd24f88aa7127fff48db2b Mon Sep 17 00:00:00 2001 From: Dave Reisner Date: Sun, 14 Dec 2014 12:35:00 -0500 Subject: shut up GCC on -Wmaybe-initialized warnings Admittedly, these are totally bogus, but a clean build is a happy build. Signed-off-by: Allan McRae --- src/pacman/pacman.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/pacman/pacman.c') diff --git a/src/pacman/pacman.c b/src/pacman/pacman.c index f43105ab..6f05c68c 100644 --- a/src/pacman/pacman.c +++ b/src/pacman/pacman.c @@ -341,8 +341,7 @@ static void invalid_opt(int used, const char *opt1, const char *opt2) static int parsearg_util_addlist(alpm_list_t **list) { - char *i, *save; - + char *i, *save = NULL; for(i = strtok_r(optarg, ",", &save); i; i = strtok_r(NULL, ",", &save)) { *list = alpm_list_add(*list, strdup(i)); -- cgit v1.2.3-54-g00ecf