summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: cc6361c)
raw | patch | inline | side by side (parent: cc6361c)
author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 25 Jun 2006 08:50:41 +0000 (10:50 +0200) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sun, 25 Jun 2006 08:50:41 +0000 (10:50 +0200) |
src/liboping/liboping.c | patch | blob | history |
index 7c094e94ff93e26e15a2f4c0afb7fe2cdd44742a..a85de2e3b618c323805966aeb349a0e6533ba384 100644 (file)
--- a/src/liboping/liboping.c
+++ b/src/liboping/liboping.c
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;