glibc/stdlib
Lode Willems 59d572ef61 getenv: Move call to strlen to the branch it's used in.
The len variable is only used in the else branch.
We don't need the call to strlen if the name is 0 or 1 characters long.

2019-10-02  Lode Willems  <Lode.Willems@UGent.be>

	* tdlib/getenv.c: Move the call to strlen into the branch it's used.
2020-12-18 12:02:28 +05:30
..
bits improve out-of-bounds checking with GCC 10 attribute access [BZ #25219] 2020-05-04 11:21:50 -06:00
sys Add GRND_INSECURE from Linux 5.6 to sys/random.h 2020-04-09 21:21:16 +00:00
a64l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
abort.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
abs.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
add_n.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
addmul_1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
alloca.h Fix spelling and grammar in several comments 2020-12-12 01:16:56 +01:00
at_quick_exit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
atexit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
atof.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
atoi.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
atol.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
atoll.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bsearch.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
bug-fmtmsg1.c
bug-getcontext.c Simplify tilegx sysdeps folder 2017-12-20 16:55:26 -02:00
bug-strtod2.c
bug-strtod.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
canonicalize.c Remove internal usage of extensible stat functions 2020-09-11 14:35:32 -03:00
cmp.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
cxa_at_quick_exit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
cxa_atexit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
cxa_finalize.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
cxa_thread_atexit_impl.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
dbl2mpn.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Depend
div.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
divmod_1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
divrem.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
drand48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
drand48-iter.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
drand48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
erand48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
erand48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
errno.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
exit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
exit.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fmtmsg.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fmtmsg.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fpioconst.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
fpioconst.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gen-fpioconst.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gen-tst-strtod-round.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getcontext.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getentropy.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getenv.c getenv: Move call to strlen to the branch it's used in. 2020-12-18 12:02:28 +05:30
getrandom.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
getsubopt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
gmp-impl.h Remove unused floating-point configuration from gmp-impl.h. 2020-04-28 15:05:09 +00:00
gmp.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
grouping.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
grouping.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
groupingwc.c
inlines.c
inttypes.h Remove strtoimax, strtoumax, wcstoimax, wcstoumax inlines 2020-12-14 17:51:38 +00:00
isomac.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
jrand48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
jrand48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
l64a.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
labs.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lcong48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lcong48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ldbl2mpn.c
ldiv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
llabs.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lldiv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
longlong.h gcc PR 89877: miscompilation due to missing cc clobber in longlong.h macros 2020-03-10 18:57:28 -07:00
lrand48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lrand48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
lshift.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
makecontext.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
Makefile Make strtoimax, strtoumax, wcstoimax, wcstoumax into aliases 2020-12-08 18:15:27 +00:00
mblen.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mbstowcs.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mbtowc.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mod_1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
monetary.h Rename __LONG_DOUBLE_USES_FLOAT128 to __LDOUBLE_REDIRECTS_TO_FLOAT128_ABI 2020-04-30 08:52:08 -05:00
mp_clz_tab.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mpn2dbl.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mpn2flt.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mpn2ldbl.c
mrand48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mrand48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
msort.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mul_1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mul_n.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
mul.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nrand48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
nrand48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
old_atexit.c
on_exit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
putenv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
qsort.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
quick_exit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rand_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rand.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
random_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
random.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rpmatch.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
rshift.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
secure-getenv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
seed48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
seed48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setcontext.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
setenv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
srand48_r.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
srand48.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stdint.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
stdlib.h random: range is not portably RAND_MAX [BZ #7003] 2020-06-30 14:20:17 -04:00
strfmon_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strfmon.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strfrom-skeleton.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strfromd.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strfromf.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strfroml.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtod_l.c Fix typo in comment in bug 26137 fix. 2020-07-01 14:53:30 +00:00
strtod_nan_main.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtod_nan_narrow.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtod_nan_wide.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtod_nan.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtod.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtof_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtof_nan.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtof.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtol_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtol.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtold_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtold_nan.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtold.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtoll_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtoll.c Make strtoimax, strtoumax, wcstoimax, wcstoumax into aliases 2020-12-08 18:15:27 +00:00
strtoul_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtoul.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtoull_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
strtoull.c Make strtoimax, strtoumax, wcstoimax, wcstoumax into aliases 2020-12-08 18:15:27 +00:00
sub_n.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
submul_1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
swapcontext.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
system.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tens_in_limb.c
test-a64l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-at_quick_exit-race.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-atexit-race-common.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-atexit-race.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-bz22786.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-canon2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-canon.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-cxa_atexit-race.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-dlclose-exit-race-helper.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-dlclose-exit-race.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
test-on_exit-race.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
testdiv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
testdiv.input
testmb2.c Fix spellings of contributor names in comments and doc 2019-08-23 13:11:05 -07:00
testmb.c
testrand.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
testsort.c
tst-at_quick_exit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-atexit-common.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-atexit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-atof1.c
tst-atof2.c
tst-bsearch.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-bz20544.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-cxa_atexit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-empty-env.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-environ.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-fmtmsg.c
tst-fmtmsg.sh Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-getrandom.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-limits.c
tst-makecontext2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-makecontext3.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-makecontext-align.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-makecontext.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-on_exit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-putenv.c
tst-putenvmod.c
tst-qsort2.c
tst-qsort.c
tst-quick_exit.cc Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-rand48-2.c
tst-rand48.c
tst-random2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-random.c
tst-secure-getenv.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext2.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext3.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext3.sh Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext4.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext5.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext6.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext7.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext8.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext9.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-setcontext.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strfmon_l.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strfrom-locale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strfrom.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strfrom.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod1i.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod2.c
tst-strtod3.c
tst-strtod4.c Adapt test case data to the changes in the thousands separators 2017-08-12 17:20:24 +02:00
tst-strtod5.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod5i.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod6.c
tst-strtod-nan-locale-main.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod-nan-locale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod-nan-sign-main.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod-nan-sign.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod-overflow.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod-round-data Fix strtod multiple-precision division bug (bug 26137). 2020-06-30 23:04:06 +00:00
tst-strtod-round-data.h Fix strtod multiple-precision division bug (bug 26137). 2020-06-30 23:04:06 +00:00
tst-strtod-round-skeleton.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod-round.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod-underflow.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtod.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtol-locale-main.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtol-locale.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-strtol.c
tst-strtoll.c
tst-swapcontext1.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-system.c stdlib: Move tst-system to tests-container 2020-03-25 09:50:45 -03:00
tst-thread-quick_exit.cc Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-tininess.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-tls-atexit-lib.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-tls-atexit-nodelete.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-tls-atexit.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-unsetenv1.c
tst-width-stdint.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-width.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
tst-xpg-basename.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
ucontext.h Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
udiv_qrnnd.c
Versions Move __fentry__ version definition to sysdeps/{i386,x86_64} 2018-08-10 09:07:44 +02:00
wcstombs.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
wctomb.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00
xpg_basename.c Update copyright dates with scripts/update-copyrights. 2020-01-01 00:14:33 +00:00