aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic/setenv.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1998-10-24 15:02:35 +0000
committerUlrich Drepper <drepper@redhat.com>1998-10-24 15:02:35 +0000
commitb0772d3be54b5bac2f1e45356eadd3c6a8277fd6 (patch)
tree56b6a834257c6338b2f59a95f9c545b2a8c6eaf9 /sysdeps/generic/setenv.c
parent692fd0170ec374156127d0d4ed9029a991d24fec (diff)
downloadglibc-b0772d3be54b5bac2f1e45356eadd3c6a8277fd6.zip
glibc-b0772d3be54b5bac2f1e45356eadd3c6a8277fd6.tar.gz
glibc-b0772d3be54b5bac2f1e45356eadd3c6a8277fd6.tar.bz2
Update.
1998-10-23 Andreas Jaeger <aj@arthur.rhein-neckar.de> * rt/aio.h: Move __aio_init to... * include/aio.h: ...here. 1998-10-24 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/unix/sysv/linux/mips/bits/fcntl.h: Remove duplicate definition of O_LARGEFILE. 1998-10-24 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/unix/sysv/linux/alpha/pathconf.c (__pathconf): Use path as first argument to statfs. 1998-10-24 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/generic/setenv.c (setenv): Add braces around ambiguous else. 1998-10-24 Andreas Jaeger <aj@arthur.rhein-neckar.de> * malloc/mtrace.c: Include <string.h> for strlen.
Diffstat (limited to 'sysdeps/generic/setenv.c')
-rw-r--r--sysdeps/generic/setenv.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/sysdeps/generic/setenv.c b/sysdeps/generic/setenv.c
index b2ebbad..21d9b67 100644
--- a/sysdeps/generic/setenv.c
+++ b/sysdeps/generic/setenv.c
@@ -115,11 +115,13 @@ setenv (name, value, replace)
size = 0;
if (__environ != NULL)
- for (ep = __environ; *ep != NULL; ++ep)
- if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=')
- break;
- else
- ++size;
+ {
+ for (ep = __environ; *ep != NULL; ++ep)
+ if (!strncmp (*ep, name, namelen) && (*ep)[namelen] == '=')
+ break;
+ else
+ ++size;
+ }
if (__environ == NULL || *ep == NULL)
{