diff options
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 eec1300..a90c83a 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) { |