projects
/
liboping.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9bb97ad
)
src/liboping.c: Declare a variable at the shortest possible scope.
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
5a39633
..
8b3ca4d
100644
(file)
--- a/
src/liboping.c
+++ b/
src/liboping.c
@@
-1141,17
+1141,15
@@
pingobj_t *ping_construct (void)
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;
}