From ee3dfa7ab8a74124448649386e877775cd8625b6 Mon Sep 17 00:00:00 2001
From: Andre Noll <maan@tuebingen.mpg.de>
Date: Sun, 28 Feb 2016 22:04:33 +0100
Subject: [PATCH] gui: Remove pointless special casing in align_str().

Regardless of whether str[0] is the null byte, passing str is correct
(and done for left and right alignment).
---
 gui.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gui.c b/gui.c
index 1a89681d..e9e94873 100644
--- a/gui.c
+++ b/gui.c
@@ -296,7 +296,7 @@ static int align_str(WINDOW* win, char *str, unsigned int len,
 		waddstr(win, str);
 	} else {
 		add_spaces(win, num / 2);
-		waddstr(win, str[0]? str: "");
+		waddstr(win, str);
 		add_spaces(win, num - num / 2);
 	}
 	return 1;
-- 
2.39.5