diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2020-02-28 12:04:19 +0200 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2020-02-28 12:04:19 +0200 |
commit | 057d237f3dcdf041974a47bc3ac90a7993ceb57d (patch) | |
tree | 2f42f33c9ade61cbbc055ca858f2e1f44fbdb462 | |
parent | 6499240b4bc400332423432c73e12a3be994ff65 (diff) | |
download | ping903-057d237f3dcdf041974a47bc3ac90a7993ceb57d.tar.gz ping903-057d237f3dcdf041974a47bc3ac90a7993ceb57d.tar.bz2 |
Bugfix
* src/pinger.c (hostlist_concat): Fix concatenation to an empty
list.
-rw-r--r-- | src/pinger.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pinger.c b/src/pinger.c index 825c814..193d291 100644 --- a/src/pinger.c +++ b/src/pinger.c @@ -205,6 +205,8 @@ hostlist_concat(HOSTLIST *a, HOSTLIST *b) b->head->prev = a->tail; if (a->tail) a->tail->next = b->head; + else + a->head = b->head; a->tail = b->head; a->count += b->count; |