From f1fcc943f911fba95cba3bff458759ede7bb4cb3 Mon Sep 17 00:00:00 2001 From: rlar Date: Wed, 31 Dec 2014 15:08:11 +0100 Subject: [PATCH] inpcom.c, cleanup inp_remove_ws(), #4/5, minor --- src/frontend/inpcom.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index eaf71c15b..ee7d457a7 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -2199,13 +2199,11 @@ static char* inp_remove_ws(char *s) { char *x = s; - char *big_buff; + char *big_buff = TMALLOC(char, strlen(s) + 2); int big_buff_index = 0; char *buffer; bool is_expression = FALSE; - big_buff = TMALLOC(char, strlen(s) + 2); - while (*s != '\0') { if (*s == '{') is_expression = TRUE;