diff --git a/MP42/MP42File.m b/MP42/MP42File.m index 0cc7552..7d22c84 100644 --- a/MP42/MP42File.m +++ b/MP42/MP42File.m @@ -594,8 +594,10 @@ static void logCallback(MP4LogLevel loglevel, const char* fmt, va_list ap) { BOOL success = YES; - if (!url && outError) { - *outError = MP42Error(@"Invalid path.", @"The destination path cannot be empty.", 100); + if (!url) { + if (outError) { + *outError = MP42Error(@"Invalid path.", @"The destination path cannot be empty.", 100); + } return NO; }