From 5cbd0759f162a1ed174954ff0435f77f967a9185 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 29 Jan 2025 17:11:08 +0000 Subject: [PATCH] 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 --- src/pakfire/string.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.5