mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-09 01:01:07 +00:00
lodepng.c (lodepng_zlib_compress): Fix alloc fail check.
From https://github.com/lvandeve/lodepng/pull/118 git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1646 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
parent
da43c6a57b
commit
8ebb9dc117
1 changed files with 1 additions and 1 deletions
|
@ -2123,7 +2123,7 @@ unsigned lodepng_zlib_compress(unsigned char** out, size_t* outsize, const unsig
|
|||
if(!error) {
|
||||
*outsize = deflatesize + 6;
|
||||
*out = (unsigned char*)lodepng_malloc(*outsize);
|
||||
if(!out) error = 83; /*alloc fail*/
|
||||
if(!*out) error = 83; /*alloc fail*/
|
||||
}
|
||||
|
||||
if(!error) {
|
||||
|
|
Loading…
Reference in a new issue