summaryrefslogtreecommitdiff
path: root/resolver.c
diff options
context:
space:
mode:
authorpdw <>2014-01-19 20:11:39 +0000
committerpdw <>2014-01-19 20:11:39 +0000
commit687861284d75260c17ff285557c12b0f2ad996f6 (patch)
treec9c1b970e33a45c1c73c95e894522efae099dda6 /resolver.c
parent40add9566d8a4bd97c5c299391984c095861b3fb (diff)
downloadiftop-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/resolver.c b/resolver.c
index b42e544..adddbc1 100644
--- a/resolver.c
+++ b/resolver.c
@@ -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;