diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-02-13 12:28:27 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-02-13 12:28:27 +0000 |
commit | 3a36d4fdea65d4881b6ef72d819d0e6e1f20855f (patch) | |
tree | 6e66ec285f8033ec8044e3bc3ebd8003957dc079 /ares/adig.c | |
parent | 12b71e422fe292ae2b6a006894fc3156c5a82322 (diff) | |
download | curl-3a36d4fdea65d4881b6ef72d819d0e6e1f20855f.tar.gz |
removed usage of unset variables (by a function that does nothing!)
Diffstat (limited to 'ares/adig.c')
-rw-r--r-- | ares/adig.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ares/adig.c b/ares/adig.c index 85cea0a11..0513d2fd7 100644 --- a/ares/adig.c +++ b/ares/adig.c @@ -140,7 +140,6 @@ int main(int argc, char **argv) struct hostent *hostent; fd_set read_fds, write_fds; struct timeval *tvp, tv; - char *errmem; #ifdef WIN32 WORD wVersionRequested = MAKEWORD(1,1); @@ -240,7 +239,6 @@ int main(int argc, char **argv) { fprintf(stderr, "ares_init_options: %s\n", ares_strerror(status)); - ares_free_errmem(errmem); return 1; } @@ -281,7 +279,7 @@ int main(int argc, char **argv) static void callback(void *arg, int status, unsigned char *abuf, int alen) { - char *name = (char *) arg, *errmem; + char *name = (char *) arg; int id, qr, opcode, aa, tc, rd, ra, rcode; unsigned int qdcount, ancount, nscount, arcount, i; const unsigned char *aptr; @@ -296,7 +294,6 @@ static void callback(void *arg, int status, unsigned char *abuf, int alen) if (status != ARES_SUCCESS) { printf("%s\n", ares_strerror(status)); - ares_free_errmem(errmem); if (!abuf) return; } |