[Scummvm-git-logs] scummvm master -> f24d5b620d6c5c84e6305292f7007604534c05b4

aquadran noreply at scummvm.org
Sun May 18 07:36:06 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
f24d5b620d Revert "GRIM: LUA: Avoid unnecessary calls for empty string concatenation"


Commit: f24d5b620d6c5c84e6305292f7007604534c05b4
    https://github.com/scummvm/scummvm/commit/f24d5b620d6c5c84e6305292f7007604534c05b4
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-05-18T09:35:42+02:00

Commit Message:
Revert "GRIM: LUA: Avoid unnecessary calls for empty string concatenation"

This reverts commit 419055abc0adfa4de4045e6fb026d08c3a3a0fc2.

Changed paths:
    engines/grim/lua/lstrlib.cpp


diff --git a/engines/grim/lua/lstrlib.cpp b/engines/grim/lua/lstrlib.cpp
index d088026d6b0..dec30476adc 100644
--- a/engines/grim/lua/lstrlib.cpp
+++ b/engines/grim/lua/lstrlib.cpp
@@ -29,8 +29,7 @@ static void addnchar(const char *s, int32 n) {
 #endif
 
 static void addstr(const char *s) {
-	if (*s)
-		addnchar(s, strlen(s));
+	addnchar(s, strlen(s));
 }
 
 static void str_len() {




More information about the Scummvm-git-logs mailing list