From 2e497f7cae45184184e2416114887095735958f5 Mon Sep 17 00:00:00 2001 From: erik Date: Thu, 08 Feb 2007 01:45:16 +0000 Subject: Each file in this commit has a problem where it is possible to dereference a pointer without that pointer being valid. This commit fixes each instance of that. --- (limited to 'core/multimedia/opieplayer/vorbis/tremor/info.c') diff --git a/core/multimedia/opieplayer/vorbis/tremor/info.c b/core/multimedia/opieplayer/vorbis/tremor/info.c index 941695e..3499ae4 100644 --- a/core/multimedia/opieplayer/vorbis/tremor/info.c +++ b/core/multimedia/opieplayer/vorbis/tremor/info.c @@ -97,8 +97,8 @@ void vorbis_comment_clear(vorbis_comment *vc){ if(vc->user_comments)_ogg_free(vc->user_comments); if(vc->comment_lengths)_ogg_free(vc->comment_lengths); if(vc->vendor)_ogg_free(vc->vendor); + memset(vc,0,sizeof(*vc)); } - memset(vc,0,sizeof(*vc)); } /* blocksize 0 is guaranteed to be short, 1 is guarantted to be long. -- cgit v0.9.0.2