From dd221c6b84e9b15478b32cc0b4ed23eb74603bbb Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 29 Apr 2010 00:07:26 +0000 Subject: [PATCH] Fix a size initialization bug. --- Console.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Console.cpp b/Console.cpp index 3035960..1afdb2f 100644 --- a/Console.cpp +++ b/Console.cpp @@ -141,7 +141,9 @@ static CYUTF8String Run(CYPool &pool, int client, CYUTF8String code) { json = NULL; #endif mode_ = Working; - if (json != NULL) + if (json == NULL) + size = 0; + else size = strlen(json); } else { mode_ = Sending; -- 2.45.2