summaryrefslogtreecommitdiff
path: root/src/pacman/pacman.c
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2014-12-14 12:35:00 -0500
committerAllan McRae <allan@archlinux.org>2014-12-18 16:34:03 +1000
commit16259d728e87c10533cd24f88aa7127fff48db2b (patch)
tree75d2c77b5081235445f47cb50d3b32693c523e5a /src/pacman/pacman.c
parent0cd174efd5065dca26fcce180d853fe6323d3e12 (diff)
downloadpacman-16259d728e87c10533cd24f88aa7127fff48db2b.tar.xz
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 <allan@archlinux.org>
Diffstat (limited to 'src/pacman/pacman.c')
-rw-r--r--src/pacman/pacman.c3
1 files changed, 1 insertions, 2 deletions
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));