From: Michael Tremer Date: Wed, 29 Jan 2025 17:11:08 +0000 (+0000) Subject: string: Don't return the number of elements in an array after append X-Git-Tag: 0.9.30~292 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5cbd0759f162a1ed174954ff0435f77f967a9185;p=pakfire.git string: Don't return the number of elements in an array after append We don't use this anywhere and it requires to reset r whenever we store the value in it. Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/string.c b/src/pakfire/string.c index 83bd6c22..6ebec1c7 100644 --- a/src/pakfire/string.c +++ b/src/pakfire/string.c @@ -500,7 +500,7 @@ int pakfire_strings_append(char*** array, const char* s) { (*array)[length] = NULL; // Return the total length of the array - return length; + return 0; ERROR: if (p)