Fix another small logic error
authorMathnerd314 <man.is.allan@gmail.com>
Wed, 21 Jan 2009 23:56:30 +0000 (23:56 +0000)
committerMathnerd314 <man.is.allan@gmail.com>
Wed, 21 Jan 2009 23:56:30 +0000 (23:56 +0000)
SVN-Revision: 5831

src/tinygettext/tinygettext.cpp

index 7ba2c60..e780ded 100644 (file)
@@ -715,15 +715,14 @@ public:
 
   Token nextToken()
   {
-    if(c == EOF)
-      return TOKEN_EOF;
-
     //Clear token contents
     tokenContent = "";
 
     skipSpace();
 
-    if(c != '"')
+    if(c == EOF)
+      return TOKEN_EOF;
+    else if(c != '"')
       {
         // Read a keyword
         do {