Applied all the changes that `git-svnimport' missed. collectd-3.9.1
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 25 Jun 2006 08:50:41 +0000 (10:50 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 25 Jun 2006 08:50:41 +0000 (10:50 +0200)
src/liboping/liboping.c

index 7c094e9..a85de2e 100644 (file)
@@ -720,8 +720,7 @@ pingobj_t *ping_construct (void)
 
        if ((obj = (pingobj_t *) malloc (sizeof (pingobj_t))) == NULL)
                return (NULL);
-
-       obj->head = NULL;
+       memset (obj, '\0', sizeof (pingobj_t));
 
        obj->timeout    = PING_DEF_TIMEOUT;
        obj->ttl        = PING_DEF_TTL;