mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-29 16:44:03 +00:00
Use ascii null char ('\0') instead of NULL.
Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
This commit is contained in:
parent
1bcf24ee9d
commit
eaeb087233
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=126652
@ -197,7 +197,7 @@ main(int argc, char *argv[])
|
||||
break;
|
||||
case 's':
|
||||
secsize = strtol(optarg, &endptr, 0);
|
||||
if (errno || *optarg == NULL || *endptr)
|
||||
if (errno || *optarg == '\0' || *endptr)
|
||||
errx(1, "%s: Bad argument to -s option",
|
||||
optarg);
|
||||
switch (secsize) {
|
||||
@ -214,7 +214,7 @@ main(int argc, char *argv[])
|
||||
case 'v':
|
||||
v_flag = 1;
|
||||
version = strtol(optarg, &endptr, 0);
|
||||
if (errno || *optarg == NULL || *endptr ||
|
||||
if (errno || *optarg == '\0' || *endptr ||
|
||||
version < 0 || version > 255)
|
||||
errx(1, "%s: Bad argument to -s option",
|
||||
optarg);
|
||||
|
Loading…
Reference in New Issue
Block a user