]> git.ipfire.org Git - pakfire.git/commitdiff
file: Correctly initialize the dump buffer
authorMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Sep 2023 15:11:10 +0000 (15:11 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 7 Sep 2023 15:11:10 +0000 (15:11 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/file.c

index cb3c5e99f768c3661b1506354ea8540ae61dc5e8..dafe2b2acf159f6dfe9b85f16016a26ff39ae322 100644 (file)
@@ -644,7 +644,7 @@ static int __pakfire_file_strmode(struct pakfire_file* file, char* s, const size
 }
 
 char* pakfire_file_dump(struct pakfire_file* file, int flags) {
-       char* buffer = "";
+       char* buffer = NULL;
        int r;
 
        char mode[12];