Code

Merge branch 'v390-fix' into v391-fix
authorFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 25 Jun 2006 08:48:42 +0000 (10:48 +0200)
committerFlorian Forster <octo@leeloo.lan.home.verplant.org>
Sun, 25 Jun 2006 08:48:42 +0000 (10:48 +0200)
1  2 
src/liboping/liboping.c

index a85de2e3b618c323805966aeb349a0e6533ba384,43d5fd509eb0711e3c7c2d58c9354584b079db6d..7c094e94ff93e26e15a2f4c0afb7fe2cdd44742a
@@@ -720,12 -720,9 +720,13 @@@ pingobj_t *ping_construct (void
  
        if ((obj = (pingobj_t *) malloc (sizeof (pingobj_t))) == NULL)
                return (NULL);
-       memset (obj, '\0', sizeof (pingobj_t));
+       obj->head = NULL;
  
 +      obj->timeout    = PING_DEF_TIMEOUT;
 +      obj->ttl        = PING_DEF_TTL;
 +      obj->addrfamily = PING_DEF_AF;
 +
        return (obj);
  }