changeset 17611:831762e82a47

do not forget to initialize dp->buffer
author henry
date Sun, 12 Feb 2006 17:01:30 +0000
parents 0cccfbe7b5d5
children 99b6205ff32c
files libmpdemux/demuxer.h
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/demuxer.h	Sun Feb 12 16:21:07 2006 +0000
+++ b/libmpdemux/demuxer.h	Sun Feb 12 17:01:30 2006 +0000
@@ -190,6 +190,7 @@
   dp->flags=0;
   dp->refcount=1;
   dp->master=NULL;
+  dp->buffer=NULL;
   if (len > 0 && (dp->buffer = (unsigned char *)malloc(len + 8)))
     memset(dp->buffer + len, 0, 8);
   else