Closed cgzones closed 2 years ago
Only the gather the requested environment variable once, since it should not change between calls.
Also silences clang-analyzer warnings:
src/cfg.c:561:7: warning: Null pointer passed to 1st parameter expecting 'nonnull' [core.NonNullParamChecker] if (strstr(getenv(LC_ALL), UTF) != NULL) { ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Thanks
Only the gather the requested environment variable once, since it should not change between calls.
Also silences clang-analyzer warnings: