From: Andre Noll Date: Sun, 28 Feb 2016 21:04:33 +0000 (+0100) Subject: gui: Remove pointless special casing in align_str(). X-Git-Tag: v0.5.6~55 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=ee3dfa7ab8a74124448649386e877775cd8625b6 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). --- 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;