Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

rootdelay <=0 is invalid

  • Loading branch information...
commit db360952da89974463b0d863e8127aa23b1a8036 1 parent 336900a
@falconindy authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  init.c
View
3  init.c
@@ -473,10 +473,11 @@ static void wait_for_root(void) { /* {{{ */
rootdelay = getenv("rootdelay");
if (rootdelay) {
+ /* atoi is "safe" here because 0 is invalid */
delay = atoi(rootdelay);
}
- if (delay == 0) {
+ if (delay <= 0) {
delay = 10;
}
Please sign in to comment.
Something went wrong with that request. Please try again.