]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Don't access next->step_fct if data->is_last is true.
authorUlrich Drepper <drepper@redhat.com>
Tue, 23 Nov 1999 17:32:34 +0000 (17:32 +0000)
committerUlrich Drepper <drepper@redhat.com>
Tue, 23 Nov 1999 17:32:34 +0000 (17:32 +0000)
iconv/skeleton.c

index a9fc2495f129d7f61e3d78a2a53236458352314c..ebae1f7f9c28dd428914d2640024439051b3763a 100644 (file)
@@ -201,7 +201,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