Check parseoffset return value in od(1)
Yeah, kinda embarassing. Forgot about that.
This commit is contained in:
parent
fc886aa144
commit
8163451249
6
od.c
6
od.c
|
@ -118,10 +118,12 @@ main(int argc, char *argv[])
|
||||||
radix = s[0];
|
radix = s[0];
|
||||||
break;
|
break;
|
||||||
case 'j':
|
case 'j':
|
||||||
skip = parseoffset(EARGF(usage()));
|
if ((skip = parseoffset(EARGF(usage()))) < 0)
|
||||||
|
return 1;
|
||||||
break;
|
break;
|
||||||
case 'N':
|
case 'N':
|
||||||
maxbytes = parseoffset(EARGF(usage()));
|
if ((maxbytes = parseoffset(EARGF(usage()))) < 0)
|
||||||
|
return 1;
|
||||||
break;
|
break;
|
||||||
case 't':
|
case 't':
|
||||||
s = EARGF(usage());
|
s = EARGF(usage());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user