From 1f8ef9e4ee7d473d726c1a6f980c560b45c315dc Mon Sep 17 00:00:00 2001 From: elliotth Date: Sat, 27 Feb 2010 17:41:57 +0000 Subject: [PATCH] trunk/make.c: trunk/Test/bug2959889.mak: bug fix and test case for bug 2959889. (Patch and report by Martin Dorey; originally at http://bugs.debian.org/571652.) git-svn-id: svn://svn.code.sf.net/p/ctags/code/trunk@751 c5d04d22-be80-434c-894e-aa346cc9e8e8 --- Test/bug2959889.mak | 1 + make.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 Test/bug2959889.mak diff --git a/Test/bug2959889.mak b/Test/bug2959889.mak new file mode 100644 index 0000000..81750b9 --- /dev/null +++ b/Test/bug2959889.mak @@ -0,0 +1 @@ +{ \ No newline at end of file diff --git a/make.c b/make.c index c23f1cf..de4dbe4 100644 --- a/make.c +++ b/make.c @@ -100,7 +100,7 @@ static void skipToMatch (const char *const pair) ++matchLevel; else if (c == end) --matchLevel; - else if (c == '\n') + else if (c == '\n' || c == EOF) break; } if (c == EOF)