[dev] [st] [PATCH 4/3] tresize: remove unnecessary if

From: noname <noname_AT_inventati.org>
Date: Sun, 12 Apr 2015 08:29:55 +0000

---
 st.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/st.c b/st.c
index 109122e..f183803 100644
--- a/st.c
+++ b/st.c
_AT_@ -2788,10 +2788,8 @@ tresize(int col, int row) {
 		free(term.line[i]);
 		free(term.alt[i]);
 	}
-	if(i > 0) {
-		memmove(term.line, term.line + i, row * sizeof(Line));
-		memmove(term.alt, term.alt + i, row * sizeof(Line));
-	}
+	memmove(term.line, term.line + i, row * sizeof(Line));
+	memmove(term.alt, term.alt + i, row * sizeof(Line));
 	for(i += row; i < term.row; i++) {
 		free(term.line[i]);
 		free(term.alt[i]);
-- 
1.8.4
Received on Sun Apr 12 2015 - 10:29:55 CEST

This archive was generated by hypermail 2.3.0 : Sun Apr 12 2015 - 10:36:07 CEST