remove redundant null check on calling free() Signed-off-by: Walter Harms <wha...@bfs.de> --- AuFileName.c | 3 +-- 1 file changed, 1 insertion(+), 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) { -- 2.1.4 _______________________________________________ xorg-devel@lists.x.org: X.Org development Archives: http://lists.x.org/archives/xorg-devel Info: https://lists.x.org/mailman/listinfo/xorg-devel