[hackers] [st] tresize: remove unnecessary if || noname_AT_inventati.org

From: <git_AT_suckless.org>
Date: Tue, 14 Apr 2015 09:56:43 +0200 (CEST)

commit 9619760e129b0994cd3bc4c827c83960f6a5e98f
Author: noname_AT_inventati.org <noname_AT_inventati.org>
Date: Sun Apr 12 10:30:19 2015 +0200

    tresize: remove unnecessary if

diff --git a/st.c b/st.c
index 4650990..2a565b6 100644
--- a/st.c
+++ b/st.c
_AT_@ -2783,10 +2783,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]);
Received on Tue Apr 14 2015 - 09:56:43 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 14 2015 - 10:00:34 CEST