module/clock: silence compiler warning: ensure timeout_ms is initialized

This commit is contained in:
Daniel Eklöf 2020-09-24 17:47:20 +02:00
parent e25c42dc87
commit d645aff48e
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -76,7 +76,7 @@ run(struct module *mod)
.tv_usec = _now.tv_nsec / 1000, .tv_usec = _now.tv_nsec / 1000,
}; };
int timeout_ms; int timeout_ms = 1000;
switch (m->update_granularity) { switch (m->update_granularity) {
case UPDATE_GRANULARITY_SECONDS: { case UPDATE_GRANULARITY_SECONDS: {