changeset 1332:018ebc066952 libavcodec

fix CHECKED_ALLOCZ(0)
author michaelni
date Sat, 28 Jun 2003 22:51:42 +0000
parents cf65e69400ec
children a1cc1810d58f
files common.h
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/common.h	Sat Jun 28 19:19:00 2003 +0000
+++ b/common.h	Sat Jun 28 22:51:42 2003 +0000
@@ -1129,7 +1129,7 @@
 #define CHECKED_ALLOCZ(p, size)\
 {\
     p= av_mallocz(size);\
-    if(p==NULL){\
+    if(p==NULL && (size)!=0){\
         perror("malloc");\
         goto fail;\
     }\