Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src/libs
diff options
context:
space:
mode:
authorSergey Simonenko <sergey.simonenko@zabbix.com>2022-01-04 19:12:50 +0300
committerMichael Veksler <Mihails.Vekslers@zabbix.com>2022-01-04 19:12:50 +0300
commit08758fcc9fb98122427be760abea3858ea3ab231 (patch)
treedd534f2ff7fe520a705e49638397689fc765d767 /src/libs
parent61b8038fb54a54db54ac45efa77712751e4d58a2 (diff)
parent5edc2be3434ad79a3cc19f93ce273bcc614d5ed5 (diff)
........S. [ZBX-19456] fixed zero timeshift
* commit '5edc2be3434ad79a3cc19f93ce273bcc614d5ed5': ........S. [ZBX-19456] fixed zero timeshift
Diffstat (limited to 'src/libs')
-rw-r--r--src/libs/zbxcommon/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/zbxcommon/time.c b/src/libs/zbxcommon/time.c
index 5c305e9227b..9d3160feb51 100644
--- a/src/libs/zbxcommon/time.c
+++ b/src/libs/zbxcommon/time.c
@@ -71,7 +71,7 @@ int zbx_tm_parse_period(const char *period, size_t *len, int *multiplier, zbx_ti
for (ptr = period; 0 != isdigit(*ptr); ptr++)
;
- if (FAIL == is_uint_n_range(period, ptr - period, multiplier, sizeof(*multiplier), 1, UINT32_MAX))
+ if (FAIL == is_uint_n_range(period, ptr - period, multiplier, sizeof(*multiplier), 0, UINT32_MAX))
{
*error = zbx_strdup(*error, "invalid period multiplier");
return FAIL;