Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
c882cec2
Commit
c882cec2
authored
Dec 11, 2003
by
zorglub
Browse files
* Fix segfault when creating a group twice without checking return value
parent
8b70bda5
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/playlist/group.c
View file @
c882cec2
...
...
@@ -2,7 +2,7 @@
* playlist.c : Playlist groups management functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: group.c,v 1.
3
2003/1
1/25 00:56:35 fenrir
Exp $
* $Id: group.c,v 1.
4
2003/1
2/11 11:30:37 zorglub
Exp $
*
* Authors: Clment Stenac <zorglub@videolan.org>
*
...
...
@@ -49,7 +49,7 @@ playlist_group_t * playlist_CreateGroup(playlist_t * p_playlist, char *psz_name)
if
(
!
strcasecmp
(
p_playlist
->
pp_groups
[
i
]
->
psz_name
,
psz_name
)
)
{
msg_Info
(
p_playlist
,
"This group already exists !"
);
return
NULL
;
return
p_playlist
->
pp_groups
[
i
]
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment