]> git.ipfire.org Git - pakfire.git/commitdiff
stripper: Initialize tmppath in case there is an error
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 Dec 2024 13:58:29 +0000 (13:58 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 Dec 2024 13:58:29 +0000 (13:58 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/stripper.c

index 5d524aa2f2c0802675c58672823fdfe010a6016c..631151c2ab78dff443c26dc8914ff949c56da389 100644 (file)
@@ -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;