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:
Allan McRae 2024-03-13 11:33:15 +10:00
parent 0571ee82bf
commit 111eed0251

View file

@ -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;