[hackers] [sbase] expr: fix, first parse then enfshut || Hiltjo Posthuma

From: <git_AT_suckless.org>
Date: Tue, 21 Apr 2015 10:11:41 +0200 (CEST)

commit ce145a39a75052fc5b8014b3409cc79b9c812421
Author: Hiltjo Posthuma <hiltjo_AT_codemadness.org>
Date: Mon Apr 20 23:28:21 2015 +0200

    expr: fix, first parse then enfshut

diff --git a/expr.c b/expr.c
index b1995c1..5e4f19d 100644
--- a/expr.c
+++ b/expr.c
_AT_@ -261,11 +261,15 @@ usage(void)
 int
 main(int argc, char *argv[])
 {
+ int ret;
+
         ARGBEGIN {
         default:
                 usage();
         } ARGEND;
 
+ ret = !parse(argv, argc);
         enfshut(3, stdout, "<stdout>");
- return !parse(argv, argc);
+
+ return ret;
 }
Received on Tue Apr 21 2015 - 10:11:41 CEST

This archive was generated by hypermail 2.3.0 : Tue Apr 21 2015 - 10:12:13 CEST