aboutsummaryrefslogtreecommitdiff
path: root/st.c
diff options
context:
space:
mode:
authornoname <noname@inventati.org>2015-04-09 20:04:43 +0000
committerRoberto E. Vargas Caballero <k0ga@shike2.com>2015-04-10 23:34:06 +0200
commit93b54cfcc437c9bac9af3ceb2d9ba19c442de1ff (patch)
tree6c415b86bec750121de0f7be932eb432631a46a2 /st.c
parent6f5f7701864e6987544cb7e7dc5f2d24db1a4537 (diff)
Use MAX macro where possible.
Diffstat (limited to 'st.c')
-rw-r--r--st.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/st.c b/st.c
index 0065240..a7064b1 100644
--- a/st.c
+++ b/st.c
@@ -4072,7 +4072,7 @@ main(int argc, char *argv[]) {
run:
setlocale(LC_CTYPE, "");
XSetLocaleModifiers("");
- tnew(cols? cols : 1, rows? rows : 1);
+ tnew(MAX(cols, 1), MAX(rows, 1));
xinit();
selinit();
run();