From 608c5b590bd3428dfcd30f3d68ee8b7131e2f019 Mon Sep 17 00:00:00 2001 From: Akira TAGOH Date: Mon, 10 Dec 2012 10:54:47 +0900 Subject: [PATCH] Remove the duplicate null-check --- src/fcinit.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fcinit.c b/src/fcinit.c index aaf8637..606483d 100644 --- a/src/fcinit.c +++ b/src/fcinit.c @@ -83,7 +83,7 @@ FcInitLoadConfig (void) prefix = FcConfigXdgCacheHome (); if (!prefix) goto bail; - plen = prefix ? strlen ((const char *)prefix) : 0; + plen = strlen ((const char *)prefix); p = realloc (prefix, plen + 12); if (!p) goto bail;