changeset 508:f71c59cbc5a7

Remove useless check from nnwin_putch().
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 03 Jun 2012 06:32:18 +0300
parents e644d373afb9
children 942eea564b15
files ui.c
diffstat 1 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/ui.c	Sun Jun 03 06:31:52 2012 +0300
+++ b/ui.c	Sun Jun 03 06:32:18 2012 +0300
@@ -229,11 +229,9 @@
 
 
 #define QPUTCH(ch) nnwin_putch(&(win->line->buf), &(win->line->bufsize), &(win->line->len), col, ch)
+
 static BOOL nnwin_putch(int **buf, size_t *bufsize, size_t *len, int color, char ch)
 {
-    if (*buf == NULL)
-        *bufsize = *len = 0;
-
     if (*buf == NULL || *len + 1 >= *bufsize)
     {
         *bufsize += TH_BUFGROW;