projects
/
platform
/
upstream
/
curl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a08b6ae
)
fix compiler warning: local variable may be used without having been initialized
author
Yang Tse
<yangsita@gmail.com>
Mon, 7 Apr 2008 14:20:05 +0000
(14:20 +0000)
committer
Yang Tse
<yangsita@gmail.com>
Mon, 7 Apr 2008 14:20:05 +0000
(14:20 +0000)
ares/ares_gethostbyname.c
patch
|
blob
|
history
diff --git
a/ares/ares_gethostbyname.c
b/ares/ares_gethostbyname.c
index
7c39ad1
..
33093aa
100644
(file)
--- a/
ares/ares_gethostbyname.c
+++ b/
ares/ares_gethostbyname.c
@@
-159,7
+159,7
@@
static void host_callback(void *arg, int status, int timeouts,
{
struct host_query *hquery = (struct host_query *) arg;
ares_channel channel = hquery->channel;
- struct hostent *host;
+ struct hostent *host
= NULL
;
hquery->timeouts += timeouts;
if (status == ARES_SUCCESS)