aboutsummaryrefslogtreecommitdiffstats
path: root/extension/ordchr.c
diff options
context:
space:
mode:
Diffstat (limited to 'extension/ordchr.c')
-rw-r--r--extension/ordchr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/ordchr.c b/extension/ordchr.c
index 8d7eac8f..3ab0f872 100644
--- a/extension/ordchr.c
+++ b/extension/ordchr.c
@@ -103,7 +103,7 @@ do_chr(int nargs, awk_value_t *result)
}
/* Set the return value */
- return dup_string(str, 1, result);
+ return make_const_string(str, 1, result);
}
static awk_ext_func_t func_table[] = {