diff options
author | Akira TAGOH <akira@tagoh.org> | 2012-12-10 10:54:47 +0900 |
---|---|---|
committer | Akira TAGOH <akira@tagoh.org> | 2012-12-10 10:54:47 +0900 |
commit | 608c5b590bd3428dfcd30f3d68ee8b7131e2f019 (patch) | |
tree | b7c243542a79547007172311915a2cc1fa42f51e | |
parent | e7954674eb4f16d0fed3018cbefb4907c89d2465 (diff) |
Remove the duplicate null-check
-rw-r--r-- | src/fcinit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fcinit.c b/src/fcinit.c index aaf86372..606483d8 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; |