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 | 4e8632cf5c1836fd78f9f1d6fb6d99624a607a5b (patch) | |
tree | 4f5251c0536a55ce83d3a0f6197859988968758c /libiberty/setenv.c | |
parent | 4c7819c41071cf69ebb603225b4ebb0b5594a896 (diff) | |
download | binutils-redhat-4e8632cf5c1836fd78f9f1d6fb6d99624a607a5b.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 eec13006c2..a90c83ad78 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) { |