From dcc248d44ef532e206a25683efb925a1874be2e5 Mon Sep 17 00:00:00 2001 From: Alon Zakai Date: Fri, 28 Nov 2014 10:53:49 -0800 Subject: [PATCH] fix extraInfo parsing --- tools/optimizer/optimizer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tools/optimizer/optimizer.cpp b/tools/optimizer/optimizer.cpp index aa3552713..d7c57ea54 100644 --- a/tools/optimizer/optimizer.cpp +++ b/tools/optimizer/optimizer.cpp @@ -2700,12 +2700,11 @@ int main(int argc, char **argv) { fclose(f); input[size] = 0; - char *comment = strstr(input, "//"); char *extraInfoStart = strstr(input, "// EXTRA_INFO:"); - if (comment) *comment = 0; // drop off the comments; TODO: parse extra info if (extraInfoStart) { extraInfo = arena.alloc(); extraInfo->parse(extraInfoStart + 14); + *extraInfoStart = 0; // ignore extra info when parsing } if (receiveJSON) {