From edf76c77fa536df4a5619e9b63ea2889180cfe8f Mon Sep 17 00:00:00 2001 From: Reijo Tomperi Date: Tue, 23 Feb 2010 21:28:40 +0200 Subject: [PATCH] Attempt to fix: #1425: -I doesn't work properly in Windows http://sourceforge.net/apps/trac/cppcheck/ticket/1425 --- lib/preprocessor.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/preprocessor.cpp b/lib/preprocessor.cpp index 3060ebcf6..a538b41c7 100644 --- a/lib/preprocessor.cpp +++ b/lib/preprocessor.cpp @@ -1291,6 +1291,8 @@ void Preprocessor::handleIncludes(std::string &code, const std::string &filename fileOpened = true; break; } + + fin.clear(); } if (headerType == 1 && !fileOpened)