Commit e5fdc86e authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: fix crash when parsing incorrect debug logs

(cherry picked from commit 29d00aef355dfc468e06dc35e7de0361e318f340)
parent 5153494a
......@@ -2158,6 +2158,11 @@ unsigned int CocoaKeyToVLC( unichar i_key )
[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