macosx: fix potential link in open panel
authorFelix Paul Kühne <fkuehne@videolan.org>
Sun, 21 Apr 2013 14:10:05 +0000 (16:10 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sun, 21 Apr 2013 14:44:14 +0000 (16:44 +0200)
modules/gui/macosx/open.m

index d015c49..7abc41c 100644 (file)
@@ -325,6 +325,9 @@ static VLCOpen *_o_sharedMainInstance = nil;
 
 - (void)setMRL:(NSString *)newMRL
 {
+    if (!newMRL)
+        newMRL = @"";
+
     if (o_mrl)
         [o_mrl release];