X-Git-Url: http://git.xonotic.org/?p=xonotic%2Fdarkplaces.git;a=blobdiff_plain;f=cl_video_jamdecode.c;h=04bd63489dfe7253df7ebc91b387e1474809aee8;hp=475f1f7b2d9400b2745954290060e8e503697792;hb=6c526650ca4c8150e53214dab39104f2065765cf;hpb=e42e4168dcbbade766cfa8ad980e7975a14fa1bb diff --git a/cl_video_jamdecode.c b/cl_video_jamdecode.c index 475f1f7b..04bd6348 100644 --- a/cl_video_jamdecode.c +++ b/cl_video_jamdecode.c @@ -53,12 +53,12 @@ void *jam_open(clvideo_t *video, char *filename, const char **errorstring) // 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); @@ -375,4 +375,4 @@ readframe: #endif } return 0; -} \ No newline at end of file +}