# HG changeset patch # User diego # Date 1254388401 0 # Node ID a352df49a10f493989c211ae3cde4f3dd6937c73 # Parent 118f18919f4b2b2e88e39a76ea0807ea2ddcf180 Use "!exp" instead of "exp == NULL" in if condition. diff -r 118f18919f4b -r a352df49a10f sgienc.c --- a/sgienc.c Thu Oct 01 09:11:07 2009 +0000 +++ b/sgienc.c Thu Oct 01 09:13:21 2009 +0000 @@ -117,7 +117,7 @@ buf += tablesize; /* Make an intermediate consecutive buffer. */ - if ((encode_buf = av_malloc(width)) == NULL) + if (!(encode_buf = av_malloc(width))) return -1; for (z = 0; z < depth; z++) {