summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRan Benita <ran234@gmail.com>2014-10-13 00:16:59 +0300
committerRan Benita <ran234@gmail.com>2014-10-13 18:54:52 +0300
commit8bba4b34ecccdec8785540d8e659136e3194e9d9 (patch)
treea185c324561a0ca31eaae0189ebfb4195689cfee
parenta3116f97d09a6d6b521dbb543f8f20b33032aa68 (diff)
downloadxorg-lib-libxkbcommon-8bba4b34ecccdec8785540d8e659136e3194e9d9.tar.gz
compose/parser: one more skip_to_eol()
Signed-off-by: Ran Benita <ran234@gmail.com>
-rw-r--r--src/compose/parser.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/compose/parser.c b/src/compose/parser.c
index 51ad4ed..42c9d2a 100644
--- a/src/compose/parser.c
+++ b/src/compose/parser.c
@@ -266,9 +266,8 @@ skip_more_whitespace_and_comments:
return TOK_RHS_KEYSYM;
}
- /* Skip line. */
- while (!eof(s) && !eol(s))
- next(s);
+ /* Discard rest of line. */
+ skip_to_eol(s);
scanner_err(s, "unrecognized token");
return TOK_ERROR;