diff options
author | Alexander Monakov <amonakov@ispras.ru> | 2020-03-09 21:32:16 +0300 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2020-03-20 15:45:08 -0400 |
commit | 526df238d0d05fe4e8446720d9d0374646f82f82 (patch) | |
tree | 6d718b69eab7383b866cad83659e6c132dcb1ed2 /src/math/expm1.c | |
parent | 72658c658b234bf24ebbc2be1863f4c6b2f2434d (diff) | |
download | musl-526df238d0d05fe4e8446720d9d0374646f82f82.tar.gz musl-526df238d0d05fe4e8446720d9d0374646f82f82.tar.xz musl-526df238d0d05fe4e8446720d9d0374646f82f82.zip |
remove redundant condition in memccpy
Commit d9bdfd164 ("fix memccpy to not access buffer past given size") correctly added a check for 'n' nonzero, but made the pre-existing test '*s==c' redundant: n!=0 implies *s==c. Remove the unnecessary check. Reported by Alexey Izbyshev.
Diffstat (limited to 'src/math/expm1.c')
0 files changed, 0 insertions, 0 deletions