vlc | branch: master | Rémi Duraffort <[email protected]> | Wed Oct 6 19:14:19 2010 +0200| [7a725e89a45fb4c2e28f848e7f927c7a3f93a497] | committer: Rémi Duraffort
epg: more small cleanup > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7a725e89a45fb4c2e28f848e7f927c7a3f93a497 --- src/misc/epg.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/misc/epg.c b/src/misc/epg.c index c09b0fb..7391eac 100644 --- a/src/misc/epg.c +++ b/src/misc/epg.c @@ -57,7 +57,7 @@ void vlc_epg_Clean( vlc_epg_t *p_epg ) void vlc_epg_AddEvent( vlc_epg_t *p_epg, int64_t i_start, int i_duration, const char *psz_name, const char *psz_short_description, const char *psz_description ) { - vlc_epg_event_t *p_evt = malloc( sizeof(vlc_epg_event_t) ); + vlc_epg_event_t *p_evt = malloc( sizeof(*p_evt) ); if( !p_evt ) return; p_evt->i_start = i_start; @@ -70,7 +70,7 @@ void vlc_epg_AddEvent( vlc_epg_t *p_epg, int64_t i_start, int i_duration, vlc_epg_t *vlc_epg_New( const char *psz_name ) { - vlc_epg_t *p_epg = malloc( sizeof(vlc_epg_t) ); + vlc_epg_t *p_epg = malloc( sizeof(*p_epg) ); if( p_epg ) vlc_epg_Init( p_epg, psz_name ); return p_epg; _______________________________________________ vlc-commits mailing list [email protected] http://mailman.videolan.org/listinfo/vlc-commits
