1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Added CVS id.

Avoid warning 'x might be used uninitialized in this function'.
This commit is contained in:
Gisle Vanem 2005-11-14 13:26:17 +00:00
parent 22a6a6cf81
commit e89adbef51

View File

@ -1,3 +1,5 @@
/* $Id$ */
/* Copyright 2005 by Dominick Meglio /* Copyright 2005 by Dominick Meglio
* *
* Permission to use, copy, modify, and distribute this * Permission to use, copy, modify, and distribute this
@ -77,8 +79,8 @@ static char *ares_striendstr(const char *s1, const char *s2);
void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa, socklen_t salen, void ares_getnameinfo(ares_channel channel, const struct sockaddr *sa, socklen_t salen,
int flags, ares_nameinfo_callback callback, void *arg) int flags, ares_nameinfo_callback callback, void *arg)
{ {
struct sockaddr_in *addr; struct sockaddr_in *addr = NULL;
struct sockaddr_in6 *addr6; struct sockaddr_in6 *addr6 = NULL;
struct nameinfo_query *niquery; struct nameinfo_query *niquery;
/* Verify the buffer size */ /* Verify the buffer size */
@ -337,6 +339,7 @@ static char *append_scopeid(struct sockaddr_in6 *addr6, unsigned int flags,
} }
#else #else
sprintf(&tmpbuf[1], "%u", addr6->sin6_scope_id); sprintf(&tmpbuf[1], "%u", addr6->sin6_scope_id);
(void) flags;
#endif #endif
strcat(buf, tmpbuf); strcat(buf, tmpbuf);
return buf; return buf;