tchwb: use macro EARGF to prevent null pointer possibility - wmutils - X windows manipulation utilities
 (HTM) git clone git://z3bra.org/wmutils
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit b19d27d718337a349f97d687f43eb8fde06575cf
 (DIR) parent 9afcb679c3109677fe0406b49148cbcac7eb9a02
 (HTM) Author: z3bra <willy@mailoo.org>
       Date:   Wed,  3 Dec 2014 23:06:29 +0100
       
       chwb: use macro EARGF to prevent null pointer possibility
       
       Diffstat:
         M chwb.c                              |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/chwb.c b/chwb.c
       t@@ -81,10 +81,10 @@ main (int argc, char **argv)
        
                ARGBEGIN {
                        case 's':
       -                        bw = strtoul(ARGF(), NULL, 10);
       +                        bw = strtoul(EARGF(usage(argv0)), NULL, 10);
                                break;
                        case 'c':
       -                        color = strtoul(ARGF(), NULL, 16);
       +                        color = strtoul(EARGF(usage(argv0)), NULL, 16);
                                break;
                        case 'h':
                                usage(argv0);