]> git.saurik.com Git - cycript.git/commitdiff
Remove empty compound expressions generated by CYVar.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 5 Jun 2012 01:31:06 +0000 (18:31 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 5 Jun 2012 01:31:43 +0000 (18:31 -0700)
Replace.cpp

index f51d2234e2232f35b83cc79918715fc4ab82b823..52671c334aae0b69c154f5519211146ced7e1a45 100644 (file)
@@ -137,6 +137,8 @@ CYStatement *CYComment::Replace(CYContext &context) {
 
 CYExpression *CYCompound::Replace(CYContext &context) {
     context.ReplaceAll(expressions_);
+    if (expressions_ == NULL)
+        return NULL;
     return this;
 }