]> git.sesse.net Git - vlc/commitdiff
playlistinfo.m: MacOS X GUI, fixed crash where meta psz_value is NULL (usn't be the...
authorDamien Fouilleul <damienf@videolan.org>
Fri, 12 Oct 2007 19:26:39 +0000 (19:26 +0000)
committerDamien Fouilleul <damienf@videolan.org>
Fri, 12 Oct 2007 19:26:39 +0000 (19:26 +0000)
modules/gui/macosx/playlistinfo.m

index 57f858a054d9770be94fb99f72a36a3efb397e89..9daa51d27d5a1111342f714baf0f86fab03f465e 100644 (file)
@@ -480,7 +480,7 @@ static VLCInfoTreeItem *o_root_item = nil;
                     initWithName: [NSString stringWithUTF8String:
                             p_item->p_input->pp_categories[i_object_id]->pp_infos[i]->psz_name]
                         value: [NSString stringWithUTF8String:
-                            p_item->p_input->pp_categories[i_object_id]->pp_infos[i]->psz_value]
+                            p_item->p_input->pp_categories[i_object_id]->pp_infos[i]->psz_value ? : ""]
                         ID: i
                         parent: self]];
                 }