Skip to content

Commit fd42f87

Browse files
committed
clear the stream structure after allocating it
git-svn-id: svn://svn.icculus.org/twilight/trunk/dpvideo@2153 d7cf8633-e32d-0410-b094-e92efae38249
1 parent cde4b23 commit fd42f87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

dpvdecode.c

+1
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,7 @@ void *dpvdecode_open(char *filename, char **errorstring)
307307
s = malloc(sizeof(dpvdecodestream_t));
308308
if (s != NULL)
309309
{
310+
memset(s, 0, sizeof(dpvdecodestream_t));
310311
s->bitstream = hz_bitstream_read_open(filename);
311312
if (s->bitstream != NULL)
312313
{

0 commit comments

Comments
 (0)