diff --git a/src/rc/rc.c b/src/rc/rc.c index 6c0a3fed..ff8995b2 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -549,7 +549,8 @@ static void do_coldplug(void) char *p; #endif - if (! rc_conf_yesno("rc_coldplug") && errno != ENOENT) + errno = 0; + if (!rc_conf_yesno("rc_coldplug") && errno != ENOENT) return; /* We need to ensure our state dirs exist.