From: Ulrich Drepper Date: Tue, 23 Nov 1999 17:32:34 +0000 (+0000) Subject: Don't access next->step_fct if data->is_last is true. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0bbde269ffb507111748470e59e90f56714bff01;p=thirdparty%2Fglibc.git Don't access next->step_fct if data->is_last is true. --- diff --git a/iconv/skeleton.c b/iconv/skeleton.c index a9fc2495f12..ebae1f7f9c2 100644 --- a/iconv/skeleton.c +++ b/iconv/skeleton.c @@ -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