]> git.ipfire.org Git - thirdparty/libarchive.git/commitdiff
Add missing const
authorzoulasc <christos@zoulas.com>
Thu, 16 Jan 2020 20:33:58 +0000 (15:33 -0500)
committerzoulasc <christos@zoulas.com>
Thu, 16 Jan 2020 20:33:58 +0000 (15:33 -0500)
libarchive/test/test_write_format_zip_file.c

index efac7d883d9153a79ec8a003d60034a354b4a3d7..2868123b08b9b14ea7018cfcbe912a3a1b94c413 100644 (file)
@@ -84,7 +84,7 @@ DEFINE_TEST(test_write_format_zip_file)
        unsigned char *central_header, *local_header, *eocd, *eocd_record;
        unsigned char *extension_start, *extension_end;
        char file_data[] = {'1', '2', '3', '4', '5', '6', '7', '8'};
-       char *file_name = "file";
+       const char *file_name = "file";
 
 #ifndef HAVE_ZLIB_H
        zip_version = 10;