From: Jay Freeman (saurik) Date: Thu, 29 Apr 2010 00:07:26 +0000 (+0000) Subject: Fix a size initialization bug. X-Git-Tag: v0.9.432~50 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/dd221c6b84e9b15478b32cc0b4ed23eb74603bbb Fix a size initialization bug. --- 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;