author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 25 Jun 2006 08:48:42 +0000 (10:48 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 25 Jun 2006 08:48:42 +0000 (10:48 +0200) |
1 | 2 | |||
---|---|---|---|---|
src/liboping/liboping.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc src/liboping/liboping.c
index a85de2e3b618c323805966aeb349a0e6533ba384,43d5fd509eb0711e3c7c2d58c9354584b079db6d..7c094e94ff93e26e15a2f4c0afb7fe2cdd44742a
+++ b/src/liboping/liboping.c
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);
}