From ae37eb5c06af32f997a1bb77fe28bf15a432d6c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Wed, 20 Jul 2016 22:35:45 +0200 Subject: [PATCH] bump simplecpp, avoid hang when there are circular inclusions --- externals/simplecpp/simplecpp.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/externals/simplecpp/simplecpp.cpp b/externals/simplecpp/simplecpp.cpp index 01f6ded40..058656863 100644 --- a/externals/simplecpp/simplecpp.cpp +++ b/externals/simplecpp/simplecpp.cpp @@ -1220,6 +1220,8 @@ std::map simplecpp::load(const simplecpp::To if (!f.is_open()) continue; + ret[header2] = 0; + TokenList *tokens = new TokenList(f, fileNumbers, header2); tokens->removeComments(); if (!tokens->cbegin())