From 6fdfb3d50e2db9ae09a458138eed8356a51996b5 Mon Sep 17 00:00:00 2001 From: Nick Treleaven Date: Sat, 12 May 2007 12:25:11 +0000 Subject: [PATCH] Fix #1717418, Hang on SQL file load. git-svn-id: https://geany.svn.sourceforge.net/svnroot/geany/trunk@1529 ea778897-0a13-0410-b9d1-a72fbfd435f5 --- ChangeLog | 6 ++++++ tagmanager/sql.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 1acf9815..18f6ca1b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-12 Nick Treleaven + + * tagmanager/sql.c: + Fix #1717418, Hang on SQL file load. + + 2007-05-11 Nick Treleaven * src/utils.c, src/utils.h, src/search.c: diff --git a/tagmanager/sql.c b/tagmanager/sql.c index 3b576c3d..2d5f082e 100644 --- a/tagmanager/sql.c +++ b/tagmanager/sql.c @@ -544,7 +544,7 @@ getNextChar: break; else fileUngetc (c); - } while (c != '\0'); + } while (c != EOF && c != '\0'); goto getNextChar; } break;