1
0
mirror of https://github.com/systemd/systemd.git synced 2024-11-01 00:51:24 +03:00

errno-util: suppress LGTM warning about strerror

This commit is contained in:
Luca Boccassi 2021-04-07 23:06:24 +01:00 committed by Luca Boccassi
parent a9a49d2fea
commit 82cdb75b8d

View File

@ -33,7 +33,7 @@ static inline int negative_errno(void) {
static inline const char *strerror_safe(int error) {
/* 'safe' here does NOT mean thread safety. */
return strerror(abs(error));
return strerror(abs(error)); /* lgtm [cpp/potentially-dangerous-function] */
}
static inline int errno_or_else(int fallback) {