More efficient string comparisions
This commit is contained in:
@ -31,5 +31,5 @@ uint32_t utils_file_crc32c(const char *filePath) {
|
||||
|
||||
char utils_env_enabled(const char *env) {
|
||||
char *envText = getenv(env);
|
||||
return envText && strcmp(envText, "") != 0;
|
||||
return envText && *envText;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user