From: Michael Tremer Date: Tue, 31 Dec 2024 13:58:29 +0000 (+0000) Subject: stripper: Initialize tmppath in case there is an error X-Git-Tag: 0.9.30~628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=81d58564cf2f9dd961963ad09ae9b936437440c8;p=pakfire.git stripper: Initialize tmppath in case there is an error Signed-off-by: Michael Tremer --- diff --git a/src/libpakfire/stripper.c b/src/libpakfire/stripper.c index 5d524aa2f..631151c2a 100644 --- a/src/libpakfire/stripper.c +++ b/src/libpakfire/stripper.c @@ -402,8 +402,8 @@ static int __pakfire_stripper_build_id_path(struct pakfire_stripper* stripper, static int pakfire_stripper_strip_debug_sections(struct pakfire_stripper* stripper, struct pakfire_file* file, const char* build_id) { char build_id_path[PATH_MAX]; + char tmppath[PATH_MAX] = ""; const char* path = NULL; - char tmppath[PATH_MAX]; FILE* f = NULL; int r;