Mercurial > libavcodec.hg
comparison utils.c @ 1032:8f440ca8e0b0 libavcodec
removed warning
author | bellard |
---|---|
date | Thu, 23 Jan 2003 23:18:42 +0000 |
parents | 19de1445beb2 |
children | bb5de8a59da8 |
comparison
equal
deleted
inserted
replaced
1031:19de1445beb2 | 1032:8f440ca8e0b0 |
---|---|
21 #include "mpegvideo.h" | 21 #include "mpegvideo.h" |
22 | 22 |
23 void *av_mallocz(unsigned int size) | 23 void *av_mallocz(unsigned int size) |
24 { | 24 { |
25 void *ptr; | 25 void *ptr; |
26 | |
27 if(size == 0) fprintf(stderr, "Warning, allocating 0 bytes\n"); | |
28 | 26 |
29 ptr = av_malloc(size); | 27 ptr = av_malloc(size); |
30 if (!ptr) | 28 if (!ptr) |
31 return NULL; | 29 return NULL; |
32 memset(ptr, 0, size); | 30 memset(ptr, 0, size); |