summaryrefslogtreecommitdiff
path: root/iconv/gconv_open.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2007-07-28 20:44:03 +0000
committerUlrich Drepper <drepper@redhat.com>2007-07-28 20:44:03 +0000
commit9d9febc7952c43f90fd81ce185e4b1a74cb13375 (patch)
treee53f5184345c494c12c38f59bdd088cbb61160fe /iconv/gconv_open.c
parent701666b77d9bc02a8dce61adcf02d2b929a2f95a (diff)
downloadglibc-9d9febc7952c43f90fd81ce185e4b1a74cb13375.tar.gz
* nscd/selinux.c (preserve_capabilities): Initialize new_caps
to avoid warning. * iconv/gconv_open.c (__gconv_open): Initialize ptr to avoid warning. * nis/nis_subr.c (nis_getnames): Initialize saveptr to avoid warning. * resolv/inet_ntop.c (inet_ntop6): Initialize best.len and cur.len to avoid warnings.
Diffstat (limited to 'iconv/gconv_open.c')
-rw-r--r--iconv/gconv_open.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/iconv/gconv_open.c b/iconv/gconv_open.c
index bbf27b3dc5..07ebb9b959 100644
--- a/iconv/gconv_open.c
+++ b/iconv/gconv_open.c
@@ -1,5 +1,5 @@
/* Find matching transformation algorithms and initialize steps.
- Copyright (C) 1997,1998,1999,2000,2001,2004,2005
+ Copyright (C) 1997,1998,1999,2000,2001,2004,2005,2007
Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -56,7 +56,7 @@ __gconv_open (const char *toset, const char *fromset, __gconv_t *handle,
/* Make copy without the error handling description. */
char *newtoset = (char *) alloca (errhand - toset + 1);
char *tok;
- char *ptr;
+ char *ptr = NULL /* Work around a bogus warning */;
newtoset[errhand - toset] = '\0';
toset = memcpy (newtoset, toset, errhand - toset);