summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 9bb97ad)
raw | patch | inline | side by side (parent: 9bb97ad)
author | Florian Forster <ff@octo.it> | |
Tue, 9 May 2017 06:41:18 +0000 (08:41 +0200) | ||
committer | Florian Forster <ff@octo.it> | |
Tue, 9 May 2017 06:41:18 +0000 (08:41 +0200) |
src/liboping.c | patch | blob | history |
diff --git a/src/liboping.c b/src/liboping.c
index 5a39633b6eab1d4e4cef7f104d5ae7c045948e5b..8b3ca4da21de250debdd219f444d9094169cba39 100644 (file)
--- a/src/liboping.c
+++ b/src/liboping.c
void ping_destroy (pingobj_t *obj)
{
pinghost_t *current;
- pinghost_t *next;
if (obj == NULL)
return;
current = obj->head;
- next = NULL;
while (current != NULL)
{
- next = current->next;
+ pinghost_t *next = current->next;
ping_free (current);
current = next;
}