summaryrefslogtreecommitdiff
path: root/src/pacman/conf.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/pacman/conf.c')
-rw-r--r--src/pacman/conf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/conf.c b/src/pacman/conf.c
index 5028284d..873ca0ee 100644
--- a/src/pacman/conf.c
+++ b/src/pacman/conf.c
@@ -459,7 +459,7 @@ static int process_cleanmethods(alpm_list_t *values,
static void setrepeatingoption(char *ptr, const char *option,
alpm_list_t **list)
{
- char *val, *saveptr;
+ char *val, *saveptr = NULL;
val = strtok_r(ptr, " ", &saveptr);
while(val) {