Commit: 3e1e6d2be7d2b644d705345adb67b6c503e94c0f
Parent: 2eeb19a3a687e6d4bfede64e4b590666a1d52039
Author: Randy Palamar
Date: Thu, 11 Jun 2026 11:12:54 -0600
util: make sure str8_from_c_str isn't evaluated twice
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/util.c b/util.c
@@ -628,7 +628,8 @@ str8_from_c_str(char *cstr)
function s8
c_str_to_s8(char *cstr)
{
- s8 result = s8_from_str8(str8_from_c_str(cstr));
+ str8 s = str8_from_c_str(cstr);
+ s8 result = s8_from_str8(s);
return result;
}