[vlc-devel] commit: Fix crash ( Rémi Denis-Courmont )
git version control
git at videolan.org
Sat Oct 11 17:18:52 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Sat Oct 11 17:44:10 2008 +0300| [af394f5dda27801134229a01fda3be0a3341a06d] | committer: Rémi Denis-Courmont
Fix crash
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=af394f5dda27801134229a01fda3be0a3341a06d
---
src/control/media_player.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/control/media_player.c b/src/control/media_player.c
index 1248e1f..7a36dd7 100644
--- a/src/control/media_player.c
+++ b/src/control/media_player.c
@@ -896,8 +896,8 @@ int libvlc_media_player_get_chapter_count_for_title(
if( !p_input_thread )
return -1;
- char *psz_name = NULL;
- if( asprintf( psz_name, "title %2i", i_title ) == -1 )
+ char *psz_name;
+ if( asprintf( &psz_name, "title %2i", i_title ) == -1 )
{
vlc_object_release( p_input_thread );
return -1;
More information about the vlc-devel
mailing list