From cf6cc845ba12dbfa7d29a4eab810888838a9749b Mon Sep 17 00:00:00 2001 From: walter harms Date: Sat, 28 Oct 2017 19:14:26 +0200 Subject: Au FileName.c: remove redundant null check on calling free() remove redundant null check on calling free() Signed-off-by: Walter Harms Reviewed-by: Daniel Martin Reviewed-by: Emil Velikov --- AuFileName.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'AuFileName.c') diff --git a/AuFileName.c b/AuFileName.c index 2946c80..4ccda9d 100644 --- a/AuFileName.c +++ b/AuFileName.c @@ -68,8 +68,7 @@ XauFileName (void) } size = strlen (name) + strlen(&slashDotXauthority[1]) + 2; if ((size > bsize) || (buf == NULL)) { - if (buf) - free (buf); + free (buf); assert(size > 0); buf = malloc (size); if (!buf) { -- cgit v1.2.3