From 3218f52f11713d28bdfedbe6eceddb8cf8502731 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 26 Jul 2013 16:44:27 -0400 Subject: [PATCH] libarchive: Avoid struct init with variable Compilers such as Borland and MIPSpro do not like struct initialization with variables. Initialize using assignment instead. --- .../cmlibarchive/libarchive/archive_read_open_filename.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c index fefcd904d..622c960c4 100644 --- a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c +++ b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c @@ -103,7 +103,9 @@ int archive_read_open_filename(struct archive *a, const char *filename, size_t block_size) { - const char *filenames[2] = { filename, NULL }; + const char *filenames[2]; + filenames[0] = filename; + filenames[1] = NULL; return archive_read_open_filenames(a, filenames, block_size); }