diff options
author | H.J. Lu <hjl@lucon.org> | 2000-06-15 20:56:25 +0000 |
---|---|---|
committer | H.J. Lu <hjl@lucon.org> | 2000-06-15 20:56:25 +0000 |
commit | cebb9a4667261b7d10f4cc646801b7885eacc51d (patch) | |
tree | ce230ec8669d2528ed6a237bfd8a633da145c7b9 /libiberty/setenv.c | |
parent | 4a43e8d841ca963132c00754348d10d05fcc7111 (diff) | |
download | gdb-cebb9a4667261b7d10f4cc646801b7885eacc51d.tar.gz |
Synced with libiberty in the gcc repository.
Diffstat (limited to 'libiberty/setenv.c')
-rw-r--r-- | libiberty/setenv.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/libiberty/setenv.c b/libiberty/setenv.c index eec13006c22..a90c83ad78e 100644 --- a/libiberty/setenv.c +++ b/libiberty/setenv.c @@ -72,11 +72,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) { |