fix replace is number by isdigit
Some checks failed
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m6s
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Failing after 1m12s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m28s
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Failing after 1m24s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m33s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m17s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Failing after 1m19s
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Failing after 1m19s
linux-x64-gcc / linux-gcc (push) Failing after 1m8s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 55s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m26s
Some checks failed
rpcrypto-build / build (Debug, hisiv510.toolchain.cmake) (push) Successful in 1m6s
rpcrypto-build / build (Release, mipsel-openwrt-linux.toolchain.cmake) (push) Failing after 1m12s
rpcrypto-build / build (Release, hisiv510.toolchain.cmake) (push) Successful in 1m28s
rpcrypto-build / build (Debug, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Failing after 1m24s
linux-hisiv500-gcc / linux-gcc-hisiv500 (push) Successful in 1m33s
rpcrypto-build / build (Debug, himix200.toolchain.cmake) (push) Successful in 1m17s
rpcrypto-build / build (Debug, mipsel-openwrt-linux.toolchain.cmake) (push) Failing after 1m19s
rpcrypto-build / build (Release, mipsel-openwrt-linux-musl.toolchain.cmake) (push) Failing after 1m19s
linux-x64-gcc / linux-gcc (push) Failing after 1m8s
linux-mips64-gcc / linux-gcc-mips64el (push) Failing after 55s
rpcrypto-build / build (Release, himix200.toolchain.cmake) (push) Successful in 1m26s
This commit is contained in:
parent
0d6f84c832
commit
87527916bb
@ -28,7 +28,7 @@ Logger::Logger() {
|
||||
} else {
|
||||
char buffer[1024] = "invalid ULIB_LOG_LEVEL=";
|
||||
for (const char* ptr = env_level; ptr && *ptr; ++ptr) {
|
||||
if (!isnumber(*ptr)) {
|
||||
if (!isdigit(*ptr)) {
|
||||
strncat(buffer + strlen(buffer), env_level, 1000);
|
||||
Log(Level::kError, "logger.cpp", __FUNCTION__, __LINE__, "ulib.log", buffer);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user