diff options
Diffstat (limited to 'libgfortran/io/unit.c')
-rw-r--r-- | libgfortran/io/unit.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libgfortran/io/unit.c b/libgfortran/io/unit.c index ae0771f..f0d8dbe 100644 --- a/libgfortran/io/unit.c +++ b/libgfortran/io/unit.c @@ -295,6 +295,7 @@ init_units (void) if (options.stdin_unit >= 0) { /* STDIN */ u = get_mem (sizeof (gfc_unit)); + memset (u, '\0', sizeof (gfc_unit)); u->unit_number = options.stdin_unit; u->s = input_stream (); @@ -316,6 +317,7 @@ init_units (void) if (options.stdout_unit >= 0) { /* STDOUT */ u = get_mem (sizeof (gfc_unit)); + memset (u, '\0', sizeof (gfc_unit)); u->unit_number = options.stdout_unit; u->s = output_stream (); @@ -337,6 +339,7 @@ init_units (void) if (options.stderr_unit >= 0) { /* STDERR */ u = get_mem (sizeof (gfc_unit)); + memset (u, '\0', sizeof (gfc_unit)); u->unit_number = options.stderr_unit; u->s = error_stream (); |