diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nice.c b/src/nice.c index 814b81737..a3c6bc3cf 100644 --- a/src/nice.c +++ b/src/nice.c @@ -91,7 +91,7 @@ main (argc, argv) /* Make sure s[1..] is a valid negative integer. Test/convert `s+1' rather than `s+2' so we reject options like `---5' as unrecognized. */ - if (s[0] == '-' && s[1] == '-' && isinteger (s + 1)) + if (s && s[0] == '-' && s[1] == '-' && isinteger (s + 1)) { adjustment = atoi (s + 1); adjustment_given = 1; |