summaryrefslogtreecommitdiffstats
path: root/Utilities
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-07-26 20:44:27 (GMT)
committerBrad King <brad.king@kitware.com>2013-07-31 12:20:24 (GMT)
commit3218f52f11713d28bdfedbe6eceddb8cf8502731 (patch)
tree86392f5b84992d1fdf695161f821636e9b48727f /Utilities
parentbae3a73ceea6163eeb6eae59dfcf838a43048831 (diff)
downloadCMake-3218f52f11713d28bdfedbe6eceddb8cf8502731.zip
CMake-3218f52f11713d28bdfedbe6eceddb8cf8502731.tar.gz
CMake-3218f52f11713d28bdfedbe6eceddb8cf8502731.tar.bz2
libarchive: Avoid struct init with variable
Compilers such as Borland and MIPSpro do not like struct initialization with variables. Initialize using assignment instead.
Diffstat (limited to 'Utilities')
-rw-r--r--Utilities/cmlibarchive/libarchive/archive_read_open_filename.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c b/Utilities/cmlibarchive/libarchive/archive_read_open_filename.c
index fefcd90..622c960 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);
}