From e1e94b12d51847cffe930e54054588a5d647774d Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sun, 12 May 2024 16:37:43 +0100 Subject: [PATCH] core: support null strings --- src/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.cpp b/src/main.cpp index 2fb4603..9b9ef95 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -74,7 +74,7 @@ std::string argsToShort(std::vector& args, const std::string& else if (a.wlType == "fixed") shortt += "f"; else if (a.wlType == "string") - shortt += "s"; + shortt += std::string(a.allowNull ? "?s" : "s"); else if (a.wlType == "object") shortt += std::string(a.allowNull ? "?" : "") + "o"; else if (a.wlType == "array")