]> git.saurik.com Git - cycript.git/blobdiff - Console.cpp
Remove debugging garbage from Mach/Inject.
[cycript.git] / 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;