From 257fafe0c91f84ad5dca36dcdf28980d512f1fec Mon Sep 17 00:00:00 2001 From: Francois-Xavier Coudert Date: Tue, 11 Sep 2007 14:53:02 +0000 Subject: [PATCH] re PR libfortran/33386 (Fortran SELECT statement miscompiles) PR libfortran/33386 * runtime/select.c (select_string): Initialize default_jump. From-SVN: r128379 --- libgfortran/ChangeLog | 5 +++++ libgfortran/runtime/select.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 4c92333266c..eaf70126853 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,8 @@ +2007-09-11 Francois-Xavier Coudert + + PR libfortran/33386 + * runtime/select.c (select_string): Initialize default_jump. + 2007-09-07 Jerry DeLisle PR libfortran/33307 diff --git a/libgfortran/runtime/select.c b/libgfortran/runtime/select.c index cecd0254118..44c353235a0 100644 --- a/libgfortran/runtime/select.c +++ b/libgfortran/runtime/select.c @@ -53,7 +53,7 @@ select_string (select_struct *table, int table_len, const char *selector, { select_struct *t; int i, low, high, mid; - int default_jump; + int default_jump = -1; if (table_len == 0) return -1; -- 2.30.2