[xiph-commits] r10947 - trunk/theora/lib

tterribe at svn.xiph.org tterribe at svn.xiph.org
Thu Feb 23 12:03:21 PST 2006


Author: tterribe
Date: 2006-02-23 12:03:20 -0800 (Thu, 23 Feb 2006)
New Revision: 10947

Modified:
   trunk/theora/lib/comment.c
Log:
Move memset call _inside_ the NULL-pointer check.


Modified: trunk/theora/lib/comment.c
===================================================================
--- trunk/theora/lib/comment.c	2006-02-23 16:54:33 UTC (rev 10946)
+++ trunk/theora/lib/comment.c	2006-02-23 20:03:20 UTC (rev 10947)
@@ -104,6 +104,6 @@
     if(tc->user_comments)_ogg_free(tc->user_comments);
     if(tc->comment_lengths)_ogg_free(tc->comment_lengths);
     if(tc->vendor)_ogg_free(tc->vendor);
+    memset(tc,0,sizeof(*tc));
   }
-  memset(tc,0,sizeof(*tc));
 }



More information about the commits mailing list