From: Michael Tremer Date: Sat, 21 Jun 2025 18:16:15 +0000 (+0000) Subject: json: Actually jump to the error block if JSON could not be parsed X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ffb06984dbd8d17c46f988195babe3a83b93ab54;p=pakfire.git json: Actually jump to the error block if JSON could not be parsed Signed-off-by: Michael Tremer --- diff --git a/src/pakfire/json.c b/src/pakfire/json.c index 6c62e3fc..c1fb8cee 100644 --- a/src/pakfire/json.c +++ b/src/pakfire/json.c @@ -59,6 +59,7 @@ int pakfire_json_parse(struct json_object** json, char** error, // Assume that the input was invalid r = -EBADMSG; + goto ERROR; } // Return the object