From: Michihiro NAKAJIMA Date: Thu, 19 May 2011 05:22:21 +0000 (-0400) Subject: Fix a silly bug made by previous change. X-Git-Tag: v3.0.0a~318 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=644994a5fb7aeec2c2ea8d9eba0f25e75ef765a5;p=thirdparty%2Flibarchive.git Fix a silly bug made by previous change. SVN-Revision: 3369 --- diff --git a/libarchive/archive_read_support_format_iso9660.c b/libarchive/archive_read_support_format_iso9660.c index e5abed2cc..40d136f23 100644 --- a/libarchive/archive_read_support_format_iso9660.c +++ b/libarchive/archive_read_support_format_iso9660.c @@ -1269,7 +1269,7 @@ archive_read_format_iso9660_read_header(struct archive_read *a, } if (iso9660->utf16be_path == NULL) { iso9660->utf16be_path = malloc(UTF16_NAME_MAX); - if (iso9660->utf16be_path) { + if (iso9660->utf16be_path == NULL) { archive_set_error(&a->archive, ENOMEM, "No memory"); return (ARCHIVE_FATAL); @@ -1277,7 +1277,7 @@ archive_read_format_iso9660_read_header(struct archive_read *a, } if (iso9660->utf16be_previous_path == NULL) { iso9660->utf16be_previous_path = malloc(UTF16_NAME_MAX); - if (iso9660->utf16be_previous_path) { + if (iso9660->utf16be_previous_path == NULL) { archive_set_error(&a->archive, ENOMEM, "No memory"); return (ARCHIVE_FATAL);