From 8b02800260960956d12eda105bc40ec5a942cd85 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 30 Oct 2012 16:04:37 +0000 Subject: [PATCH] A pretty useless fix from a newer version of kplib than we forked from. I'm just tired of seeing it in my tree. ;) git-svn-id: https://svn.eduke32.com/eduke32@3103 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/kplib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polymer/eduke32/build/src/kplib.c b/polymer/eduke32/build/src/kplib.c index b049ade38..375cf9488 100644 --- a/polymer/eduke32/build/src/kplib.c +++ b/polymer/eduke32/build/src/kplib.c @@ -3302,7 +3302,7 @@ void kpzload(const char *filnam, intptr_t *pic, int32_t *bpl, int32_t *xsiz, int (*pic) = 0; if (handle < 0) return; leng = kfilelength(handle); - buf = (char *)Bmalloc(leng+1); if (!buf) return; + buf = (char *)Bmalloc(leng+1); if (!buf) { kclose(handle); return; } buf[leng]=0; // FIXME: buf[leng] read in kpegrend(), see BUF_LENG_READ kread(handle,buf,leng); kclose(handle);