Commit 29d00aef authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix crash when parsing incorrect debug logs

parent 04b45e8f
......@@ -2013,6 +2013,11 @@ static VLCMain *_o_sharedMainInstance = nil;
[o_msg_arr removeObjectAtIndex: 0];
[o_msg_arr removeObjectAtIndex: 1];
}
if (!item->psz_module)
return;
if (!str)
return;
firstString = [NSString stringWithFormat:@"%s%s", item->psz_module, ppsz_type[i_type]];
secondString = [NSString stringWithFormat:@"%@%s\n", firstString, str];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment