diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2005-09-24 22:54:44 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2005-09-24 22:54:44 +0000 |
| commit | 303e089df56251ad09e65f92df000e4ace6d82c1 (patch) | |
| tree | 09a4bee24294652a8bdf35ba4ad62f17593ebb85 /src/backend/utils/adt/inet_net_ntop.c | |
| parent | 5d9c6b18d30daa35e59c89f33c685e0133da0bf4 (diff) | |
| download | postgresql-303e089df56251ad09e65f92df000e4ace6d82c1.tar.gz | |
Clean up possibly-uninitialized-variable warnings reported by gcc 4.x.
Diffstat (limited to 'src/backend/utils/adt/inet_net_ntop.c')
| -rw-r--r-- | src/backend/utils/adt/inet_net_ntop.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/backend/utils/adt/inet_net_ntop.c b/src/backend/utils/adt/inet_net_ntop.c index 79a9f1cc3d..67a55be571 100644 --- a/src/backend/utils/adt/inet_net_ntop.c +++ b/src/backend/utils/adt/inet_net_ntop.c @@ -14,7 +14,7 @@ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT * OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. * - * $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_ntop.c,v 1.19 2005/02/01 00:59:09 tgl Exp $ + * $PostgreSQL: pgsql/src/backend/utils/adt/inet_net_ntop.c,v 1.20 2005/09/24 22:54:38 tgl Exp $ */ #if defined(LIBC_SCCS) && !defined(lint) @@ -443,6 +443,8 @@ inet_net_ntop_ipv6(const u_char *src, int bits, char *dst, size_t size) words[i / 2] |= (src[i] << ((1 - (i % 2)) << 3)); best.base = -1; cur.base = -1; + best.len = 0; + cur.len = 0; for (i = 0; i < (NS_IN6ADDRSZ / NS_INT16SZ); i++) { if (words[i] == 0) |
