From dd98b20f4a9acca695b9ca0ce7c2badcb57f4e51 Mon Sep 17 00:00:00 2001 From: akallabeth Date: Fri, 20 Sep 2024 13:29:01 +0200 Subject: [PATCH] [core,utils] improve utils_str_is_empty --- libfreerdp/core/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libfreerdp/core/utils.c b/libfreerdp/core/utils.c index 1b105d85a..0f395d893 100644 --- a/libfreerdp/core/utils.c +++ b/libfreerdp/core/utils.c @@ -257,7 +257,7 @@ BOOL utils_str_is_empty(const char* str) { if (!str) return TRUE; - if (strlen(str) == 0) + if (*str == '\0') return TRUE; return FALSE; }