Commit a5ecc871 authored by Pekka Pessi's avatar Pekka Pessi
Browse files

Do not log error if su_timer_set() is called with NULL timer.

parent bead42cb
......@@ -286,10 +286,8 @@ int su_timer_set(su_timer_t *t,
char const *func = "su_timer_set";
su_timer_t **timers;
if (t == NULL) {
SU_DEBUG_1(("%s(%p): %s\n", func, t, "NULL argument"));
if (t == NULL)
return -1;
assert(t->sut_duration > 0);
if (t->sut_duration == 0) {
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment