summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn-Mark Bell <jmb@netsurf-browser.org>2022-05-22 14:27:41 +0100
committerJohn-Mark Bell <jmb@netsurf-browser.org>2022-05-22 14:27:41 +0100
commit826d34fdc8660e76759423e3fa108c16bd2b3c96 (patch)
treeef46c22129697932d55e167abd7479ee643188c3
parent0a9599a0f146023336ab3cb77885834eb1f63070 (diff)
downloadlibrufl-826d34fdc8660e76759423e3fa108c16bd2b3c96.tar.gz
librufl-826d34fdc8660e76759423e3fa108c16bd2b3c96.tar.bz2
Start brute-force scan at codepoint 1
There's no point starting at 0, as it is not a valid codepoint and will never be valid.
-rw-r--r--src/rufl_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rufl_init.c b/src/rufl_init.c
index 6f845eb..bad950d 100644
--- a/src/rufl_init.c
+++ b/src/rufl_init.c
@@ -573,7 +573,7 @@ static rufl_code rufl_init_enumerate_characters(const char *font_name,
/* Search the entire space up to the first codepoint it
* reported. */
- for (u = 0; u != (unsigned int) -1 && u != first; u++) {
+ for (u = 1; u != (unsigned int) -1 && u != first; u++) {
rufl_fm_error = xfont_enumerate_characters(font, u,
(int *) &next, (int *) &internal);
if (rufl_fm_error) {