]> git.sesse.net Git - vlc/commitdiff
macosx: avoid possible index out of range problem in bookmarks table view
authorDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 20 Jul 2014 15:35:24 +0000 (17:35 +0200)
committerDavid Fuhrmann <dfuhrmann@videolan.org>
Sun, 20 Jul 2014 15:35:32 +0000 (17:35 +0200)
modules/gui/macosx/bookmarks.m

index e82479a20637dfaabb2fcbe35d357d2dfe0daf4a..adb1b6ae6e1bc5d367c713556a2fd3426f937fdb 100644 (file)
@@ -397,6 +397,8 @@ clear:
         return @"";
     else if (input_Control(p_input, INPUT_GET_BOOKMARKS, &pp_bookmarks, &i_bookmarks) != VLC_SUCCESS)
         ret = @"";
+    else if (row >= i_bookmarks)
+        ret = @"";
     else {
         NSString * identifier = [theTableColumn identifier];
         if ([identifier isEqualToString: @"description"])