mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
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>
This commit is contained in:
parent
0cd174efd5
commit
16259d728e
@ -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) {
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user