From f929ab0569ff31ed5a59b0b0adb7ce09df3fca39 Mon Sep 17 00:00:00 2001 From: Gabriel Dume Date: Thu, 14 Aug 2014 16:31:24 -0400 Subject: cosmetics: Write NULL pointer equality checks more compactly Signed-off-by: Diego Biurrun --- libavcodec/libxvid_rc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libavcodec/libxvid_rc.c') diff --git a/libavcodec/libxvid_rc.c b/libavcodec/libxvid_rc.c index 7f4a89d25d..a17a776fe1 100644 --- a/libavcodec/libxvid_rc.c +++ b/libavcodec/libxvid_rc.c @@ -50,7 +50,7 @@ int ff_tempfile(const char *prefix, char **filename) { *filename = av_malloc(len); #endif /* -----common section-----*/ - if (*filename == NULL) { + if (!(*filename)) { av_log(NULL, AV_LOG_ERROR, "ff_tempfile: Cannot allocate file name\n"); return -1; } -- cgit v1.2.3