summaryrefslogtreecommitdiff
path: root/src/libexif/exif-mem.c
diff options
context:
space:
mode:
authorscuri <scuri>2009-08-20 12:13:11 +0000
committerscuri <scuri>2009-08-20 12:13:11 +0000
commit35733b87eed86e5228f12fa10c98a3d9d22a6073 (patch)
treeaa7e3c89788c15b925eecdbdf7e9d98291b4f469 /src/libexif/exif-mem.c
parent83b3c8b629d96f5fdf754d35d5f4f5369dbfef1d (diff)
*** empty log message ***
Diffstat (limited to 'src/libexif/exif-mem.c')
-rw-r--r--src/libexif/exif-mem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libexif/exif-mem.c b/src/libexif/exif-mem.c
index 12027d1..7290b9d 100644
--- a/src/libexif/exif-mem.c
+++ b/src/libexif/exif-mem.c
@@ -33,7 +33,8 @@ exif_mem_new (ExifMemAllocFunc alloc_func, ExifMemReallocFunc realloc_func,
{
ExifMem *mem;
- if (!alloc_func || !realloc_func) return NULL;
+ if (!alloc_func && !realloc_func)
+ return NULL;
mem = alloc_func ? alloc_func (sizeof (ExifMem)) :
realloc_func (NULL, sizeof (ExifMem));
if (!mem) return NULL;