]> git.saurik.com Git - cycript.git/commitdiff
Fix a size initialization bug.
authorJay Freeman (saurik) <saurik@saurik.com>
Thu, 29 Apr 2010 00:07:26 +0000 (00:07 +0000)
committerJay Freeman (saurik) <saurik@saurik.com>
Thu, 29 Apr 2010 00:07:26 +0000 (00:07 +0000)
Console.cpp

index 3035960b86029d3289dd01ccdd51af8667f39279..1afdb2fe93ef2c9d5f601b9458dc9ecf6c250c22 100644 (file)
@@ -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;