diff options
author | Tobias Burnus <burnus@net-b.de> | 2013-04-15 14:45:06 +0200 |
---|---|---|
committer | Tobias Burnus <burnus@gcc.gnu.org> | 2013-04-15 14:45:06 +0200 |
commit | 95bd9622ab403e45e6e7bfd93489907979d1d80c (patch) | |
tree | 5104d99607c4cf2204fb04fddc745c94f35cc11f | |
parent | 83584eab1b561ac4be25da110c20d2d92371b9df (diff) | |
download | gcc-95bd9622ab403e45e6e7bfd93489907979d1d80c.zip gcc-95bd9622ab403e45e6e7bfd93489907979d1d80c.tar.gz gcc-95bd9622ab403e45e6e7bfd93489907979d1d80c.tar.bz2 |
list_read.c (finish_separator): Initialize variable.
2013-04-15 Tobias Burnus <burnus@net-b.de>
* list_read.c (finish_separator): Initialize variable.
From-SVN: r197969
-rw-r--r-- | libgfortran/ChangeLog | 4 | ||||
-rw-r--r-- | libgfortran/io/list_read.c | 5 |
2 files changed, 7 insertions, 2 deletions
diff --git a/libgfortran/ChangeLog b/libgfortran/ChangeLog index 55f6dd7..25219aa 100644 --- a/libgfortran/ChangeLog +++ b/libgfortran/ChangeLog @@ -1,3 +1,7 @@ +2013-04-15 Tobias Burnus <burnus@net-b.de> + + * list_read.c (finish_separator): Initialize variable. + 2013-04-15 Janne Blomqvist <jb@gcc.gnu.org> PR fortran/56919 diff --git a/libgfortran/io/list_read.c b/libgfortran/io/list_read.c index b29fdcd..c8a1bdfc 100644 --- a/libgfortran/io/list_read.c +++ b/libgfortran/io/list_read.c @@ -393,7 +393,7 @@ static int finish_separator (st_parameter_dt *dtp) { int c; - int err; + int err = LIBERROR_OK; restart: eat_spaces (dtp); @@ -433,7 +433,7 @@ finish_separator (st_parameter_dt *dtp) return err; goto restart; } - + /* Fall through. */ default: unget_char (dtp, c); break; @@ -2788,6 +2788,7 @@ nml_get_obj_data (st_parameter_dt *dtp, namelist_info **pprev_nl, "namelist not terminated with / or &end"); goto nml_err_ret; } + /* Fall through. */ case '/': dtp->u.p.input_complete = 1; return true; |