git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11778
d7cf8633-e32d-0410-b094-
e92efae38249
// allocate stream structure
s = (jamdecodestream_t *)Z_Malloc(sizeof(jamdecodestream_t));
memset(s, 0, sizeof(jamdecodestream_t));
- s->sndchan = -1;
if (s == NULL)
{
*errorstring = "unable to allocate memory for stream info structure";
return NULL;
}
+ s->sndchan = -1;
// open file
s->file = FS_OpenVirtualFile(filename, true);
#endif
}
return 0;
-}
\ No newline at end of file
+}
// allocate stream
s = (libavwstream_t *)Z_Malloc(sizeof(libavwstream_t));
- s->sndchan = -1;
- memset(s, 0, sizeof(libavwstream_t));
if (s == NULL)
{
*errorstring = "unable to allocate memory for stream info structure";
return NULL;
}
+ memset(s, 0, sizeof(libavwstream_t));
+ s->sndchan = -1;
// open file
s->file = FS_OpenVirtualFile(filename, true);