From: Jay Freeman (saurik) Date: Tue, 5 Jun 2012 01:31:06 +0000 (-0700) Subject: Remove empty compound expressions generated by CYVar. X-Git-Tag: v0.9.456~37 X-Git-Url: https://git.saurik.com/cycript.git/commitdiff_plain/541654b492a36d0a36862a785ee2fbe8dab77207 Remove empty compound expressions generated by CYVar. --- diff --git a/Replace.cpp b/Replace.cpp index f51d223..52671c3 100644 --- a/Replace.cpp +++ b/Replace.cpp @@ -137,6 +137,8 @@ CYStatement *CYComment::Replace(CYContext &context) { CYExpression *CYCompound::Replace(CYContext &context) { context.ReplaceAll(expressions_); + if (expressions_ == NULL) + return NULL; return this; }