Skip to content

Commit

Permalink
Return correct timer in __ni_timer_disarm
Browse files Browse the repository at this point in the history
Signed-off-by: Olaf Hering <olaf@aepfle.de>
  • Loading branch information
olafhering committed Sep 2, 2014
1 parent 5dafcb7 commit 1e2eeda
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/timer.c
Expand Up @@ -123,10 +123,10 @@ __ni_timer_disarm(const ni_timer_t *handle)
if (timer == handle) {
*pos = timer->next;
timer->next = NULL;
break;
return timer;
}
}
return timer;
return NULL;
}

int
Expand Down

0 comments on commit 1e2eeda

Please sign in to comment.