From: Denys Vlasenko Date: Wed, 22 May 2013 16:18:51 +0000 (+0200) Subject: ntpd: set G.last_script_run even if script isn't configured X-Git-Tag: 1_22_0~181 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=07c5987498bcd3ba276cc9877921467893ada6f0;p=oweals%2Fbusybox.git ntpd: set G.last_script_run even if script isn't configured Signed-off-by: Denys Vlasenko --- diff --git a/networking/ntpd.c b/networking/ntpd.c index bff2c0d4c..27e2e9f53 100644 --- a/networking/ntpd.c +++ b/networking/ntpd.c @@ -838,6 +838,8 @@ static void run_script(const char *action, double offset) char *argv[3]; char *env1, *env2, *env3, *env4; + G.last_script_run = G.cur_time; + if (!G.script_name) return; @@ -874,8 +876,6 @@ static void run_script(const char *action, double offset) free(env2); free(env3); free(env4); - - G.last_script_run = G.cur_time; } static NOINLINE void