Check if outError pointer is not null before assigning a new value.
This commit is contained in:
1 parent
97c1378a48
commit
c7e9a124f3
1 file changed
+6
-3
+6
-3
@@ -733,9 +733,12 @@ static void logCallback(MP4LogLevel loglevel, const char *fmt, va_list ap) {
|
||||
if (fileImporter) {
|
||||
track.muxer_helper->importer = fileImporter;
|
||||
} else {
|
||||
*outError = MP42Error(@"Missing sources.",
|
||||
@"One or more sources files are missing.",
|
||||
200);
|
||||
if (outError) {
|
||||
*outError = MP42Error(@"Missing sources.",
|
||||
@"One or more sources files are missing.",
|
||||
200);
|
||||
}
|
||||
|
||||
noErr = NO;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user