summaryrefslogtreecommitdiff
path: root/locale/weightwc.h
diff options
context:
space:
mode:
Diffstat (limited to 'locale/weightwc.h')
-rw-r--r--locale/weightwc.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/locale/weightwc.h b/locale/weightwc.h
index 9e5bcf7f4d..d0ca018e70 100644
--- a/locale/weightwc.h
+++ b/locale/weightwc.h
@@ -51,8 +51,7 @@ findidx (const wint_t **cpp)
const wint_t *usrc = *cpp;
/* The first thing is the index. */
- i = cp;
- ++cp;
+ i = *cp++;
/* Next is the length of the byte sequence. These are always
short byte sequences so there is no reason to call any