diff options
author | Allan McRae <allan@archlinux.org> | 2024-03-13 11:33:15 +1000 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2024-03-14 01:50:05 +0000 |
commit | 111eed0251238a9d3f90e76d62f2ac01aeccce48 (patch) | |
tree | 714b2f356254f8c3fd98a857a661a686bff15f44 /src | |
parent | 0571ee82bff0edbd5ffac2228d4e6ac510b9008e (diff) |
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>
Diffstat (limited to 'src')
-rw-r--r-- | src/pacman/util.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c index 8a94e8ca..ebc21040 100644 --- a/src/pacman/util.c +++ b/src/pacman/util.c @@ -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; |