diff options
author | pdw <> | 2014-01-19 20:11:39 +0000 |
---|---|---|
committer | pdw <> | 2014-01-19 20:11:39 +0000 |
commit | 687861284d75260c17ff285557c12b0f2ad996f6 (patch) | |
tree | c9c1b970e33a45c1c73c95e894522efae099dda6 /resolver.c | |
parent | 40add9566d8a4bd97c5c299391984c095861b3fb (diff) | |
download | iftop-687861284d75260c17ff285557c12b0f2ad996f6.zip |
Patches from Robert Scheck <robert@fedoraproject.org>
* enable building iftop with more recent versions of autoconf/automake
* patch to remove compile time warnings (mostly already applied).
Diffstat (limited to 'resolver.c')
-rw-r--r-- | resolver.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -107,10 +107,10 @@ char *do_resolve(struct addr_storage *addr) { * a non thread-safe wrapper to gethostbyaddr. An interesting choice... */ char* do_resolve(struct addr_storage *addr) { - struct hostent hostbuf, *hp; + struct hostent hostbuf, *hp = NULL; size_t hstbuflen = 1024; char *tmphstbuf; - int res; + int res = 0; int herr; char * ret = NULL; |