libarchive: Avoid struct init with variable

Compilers such as Borland and MIPSpro do not like struct initialization
with variables.  Initialize using assignment instead.
This commit is contained in:
Brad King 2013-07-26 16:44:27 -04:00
parent bae3a73cee
commit 3218f52f11
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}