]> git.saurik.com Git - cycript.git/commitdiff
If CYEmpty lowers to NULL, CYStatement::Single crashes.
authorJay Freeman (saurik) <saurik@saurik.com>
Tue, 5 Jun 2012 09:45:33 +0000 (02:45 -0700)
committerJay Freeman (saurik) <saurik@saurik.com>
Tue, 5 Jun 2012 09:45:33 +0000 (02:45 -0700)
Output.cpp

index cd04e2ed0bb5fbb89709b983041331e0033057f8..8d3ddaafbda38170c1e59e416d77482b8187fb07 100644 (file)
@@ -583,6 +583,9 @@ void CYStatement::Multiple(CYOutput &out, CYFlags flags) const {
 }
 
 void CYStatement::Single(CYOutput &out, CYFlags flags) const {
+    if (this == NULL)
+        return out.Terminate();
+
     _assert(next_ == NULL);
     out << '\n';
     ++out.indent_;