]> granicus.if.org Git - musl/commit
remove invalid skip of locking in ungetwc
authorRich Felker <dalias@aerifal.cx>
Sat, 6 Jun 2015 18:11:17 +0000 (18:11 +0000)
committerRich Felker <dalias@aerifal.cx>
Sat, 6 Jun 2015 18:11:17 +0000 (18:11 +0000)
commit7e816a6487932cbb3cb71d94b609e50e81f4e5bf
tree3742adde5771700ba3ca39682b5105e518e87e82
parent63f4b9f18f3674124d8bcb119739fec85e6da005
remove invalid skip of locking in ungetwc

aside from being invalid, the early check only optimized the error
case, and likely pessimized the common case by separating the
two branches on isascii(c) at opposite ends of the function.
src/stdio/ungetwc.c