Check if outError pointer is not null before assigning a new value.

This commit is contained in:
Damiano Galassi committed 2014-10-15 09:51:47 +02:00
1 parent 97c1378a48
commit c7e9a124f3
1 file changed
+6 -3
+6 -3
View File
@@ -733,9 +733,12 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
if (fileImporter) { if (fileImporter) {
track.muxer_helper->importer = fileImporter; track.muxer_helper->importer = fileImporter;
} else { } else {
*outError = MP42Error(@"Missing sources.", if (outError) {
@"One or more sources files are missing.", *outError = MP42Error(@"Missing sources.",
200); @"One or more sources files are missing.",
200);
}
noErr = NO; noErr = NO;
break; break;
} }