Fix unused result warnings
Not actually a fix, as the pacman output will still be weird and we will not gracefully exit, but it does print an error message... Signed-off-by: Allan McRae <allan@archlinux.org>
This commit is contained in:
parent
0571ee82bf
commit
111eed0251
1 changed files with 3 additions and 3 deletions
|
@ -428,10 +428,10 @@ static char *concat_list(alpm_list_t *lst, formatfn fn)
|
|||
}
|
||||
|
||||
if(tmp) {
|
||||
asprintf(&output, "%s %s", tmp, str);
|
||||
pm_asprintf(&output, "%s %s", tmp, str);
|
||||
free(tmp);
|
||||
} else {
|
||||
asprintf(&output, "%s", str);
|
||||
pm_asprintf(&output, "%s", str);
|
||||
}
|
||||
tmp = output;
|
||||
|
||||
|
@ -441,7 +441,7 @@ static char *concat_list(alpm_list_t *lst, formatfn fn)
|
|||
}
|
||||
|
||||
if(!output) {
|
||||
asprintf(&output, "%s", "");
|
||||
pm_asprintf(&output, "%s", "");
|
||||
}
|
||||
|
||||
return output;
|
||||
|
|
Loading…
Add table
Reference in a new issue