about summary refs log tree commit diff
path: root/iconv/skeleton.c
diff options
context:
space:
mode:
Diffstat (limited to 'iconv/skeleton.c')
-rw-r--r--iconv/skeleton.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/iconv/skeleton.c b/iconv/skeleton.c
index 0bcad9e6d0..3574fabea4 100644
--- a/iconv/skeleton.c
+++ b/iconv/skeleton.c
@@ -199,7 +199,7 @@ FUNCTION_NAME (struct __gconv_step *step, struct __gconv_step_data *data,
 {
   struct __gconv_step *next_step = step + 1;
   struct __gconv_step_data *next_data = data + 1;
-  __gconv_fct fct = next_step->__fct;
+  __gconv_fct fct = data->is_last ? NULL : next_step->__fct;
   int status;
 
   /* If the function is called with no input this means we have to reset