projects
/
platform
/
upstream
/
libxkbcommon.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3116f9
)
compose/parser: one more skip_to_eol()
author
Ran Benita
<ran234@gmail.com>
Sun, 12 Oct 2014 21:16:59 +0000
(
00:16
+0300)
committer
Ran Benita
<ran234@gmail.com>
Mon, 13 Oct 2014 15:54:52 +0000
(18:54 +0300)
Signed-off-by: Ran Benita <ran234@gmail.com>
src/compose/parser.c
patch
|
blob
|
history
diff --git
a/src/compose/parser.c
b/src/compose/parser.c
index
51ad4ed
..
42c9d2a
100644
(file)
--- 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;