diff options
Diffstat (limited to 'src/core/expandos.c')
-rw-r--r-- | src/core/expandos.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/expandos.c b/src/core/expandos.c index fd4ee5e6..90288bf6 100644 --- a/src/core/expandos.c +++ b/src/core/expandos.c @@ -481,7 +481,7 @@ static int sig_timer(void) /* check if $Z has changed */ now = time(NULL); if (last_timestamp != now) { - if (!timestamp_seconds) { + if (!timestamp_seconds && last_timestamp != 0) { /* assume it changes every minute */ tm = localtime(&last_timestamp); last_min = tm->tm_min; |