summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/editfns.c')
-rw-r--r--src/editfns.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c
index bcf3b751aa..12e82c428a 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -3088,14 +3088,11 @@ It returns the number of characters changed. */)
}
else
{
- int c;
-
nc = oc;
val = CHAR_TABLE_REF (table, oc);
- if (CHARACTERP (val)
- && (c = XFASTINT (val), CHAR_VALID_P (c, 0)))
+ if (CHARACTERP (val))
{
- nc = c;
+ nc = XFASTINT (val);
str_len = CHAR_STRING (nc, buf);
str = buf;
}