wmutils

X windows manipulation utilities
git clone git://z3bra.org/wmutils
Log | Files | Refs | LICENSE

commit b19d27d718337a349f97d687f43eb8fde06575cf
parent 9afcb679c3109677fe0406b49148cbcac7eb9a02
Author: z3bra <willy@mailoo.org>
Date:   Wed Dec  3 23:06:29 2014

chwb: use macro EARGF to prevent null pointer possibility

Diffstat:
 chwb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/chwb.c b/chwb.c @@ -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);