diff options
author | walter harms <wharms@bfs.de> | 2017-10-28 19:14:26 +0200 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2017-10-30 15:49:38 +0000 |
commit | cf6cc845ba12dbfa7d29a4eab810888838a9749b (patch) | |
tree | fca8462b8adf650e5c30300c0a1524ab6cf78c0b | |
parent | fdbb21274a4e8af419b2581e05242f5058471f72 (diff) |
Au FileName.c: remove redundant null check on calling free()
remove redundant null check on calling free()
Signed-off-by: Walter Harms <wharms@bfs.de>
Reviewed-by: Daniel Martin <consume.noise@gmail.com>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
-rw-r--r-- | AuFileName.c | 3 |
1 files changed, 1 insertions, 2 deletions
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) { |