From: octo Date: Wed, 19 Apr 2006 12:40:06 +0000 (+0000) Subject: Set object options to the default values, when creating the object. This may have... X-Git-Tag: svn-trunk~66 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=ec1587eb6dd4cf4f49f80b66f9df1a371e1a6a87;p=collectd.git Set object options to the default values, when creating the object. This may have failed the `ping' plugins initialization.. --- diff --git a/src/liboping/liboping.c b/src/liboping/liboping.c index 57de9b5f..de66cd53 100644 --- a/src/liboping/liboping.c +++ b/src/liboping/liboping.c @@ -771,6 +771,10 @@ pingobj_t *ping_construct (void) return (NULL); memset (obj, '\0', sizeof (pingobj_t)); + obj->timeout = PING_DEF_TIMEOUT; + obj->ttl = PING_DEF_TTL; + obj->addrfamily = PING_DEF_AF; + return (obj); }