diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core/wee-hdata.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-hdata.c b/src/core/wee-hdata.c index 976d09967..6580349db 100644 --- a/src/core/wee-hdata.c +++ b/src/core/wee-hdata.c @@ -1059,7 +1059,7 @@ hdata_set (struct t_hdata *hdata, void *pointer, const char *name, case WEECHAT_HDATA_TIME: error = NULL; number = strtol (value, &error, 10); - if (error && !error[0]) + if (error && !error[0] && (number >= 0)) { *((time_t *)(pointer + var->offset)) = (time_t)number; return 1; |