diff options
author | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-06 12:43:45 +0000 |
---|---|---|
committer | burnus <burnus@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-01-06 12:43:45 +0000 |
commit | 2ba3f827c33d87db81d577737ab8fca343acfcad (patch) | |
tree | 2660a1daa2a71548d71f5abd1a57c7415f440b52 /libgfortran/intrinsics | |
parent | 999f6456de0d4c6bad1cd82d3c041c91f9689d5e (diff) | |
download | gcc-2ba3f827c33d87db81d577737ab8fca343acfcad.tar.gz |
2013-01-06 Tobias Burnus <burnus@net-b.de>
PR fortran/54678
* intrinsics/env.c (get_environment_variable_i8): Don't use
uninitialized variable.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@194948 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgfortran/intrinsics')
-rw-r--r-- | libgfortran/intrinsics/env.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libgfortran/intrinsics/env.c b/libgfortran/intrinsics/env.c index 8836038488a..252ee2f5c8a 100644 --- a/libgfortran/intrinsics/env.c +++ b/libgfortran/intrinsics/env.c @@ -185,7 +185,8 @@ get_environment_variable_i8 (char *name, char *value, GFC_INTEGER_8 *length, trim_name4 = *trim_name; get_environment_variable_i4 (name, value, &length4, &status4, - &trim_name4, name_len, value_len); + trim_name ? &trim_name4 : NULL, + name_len, value_len); if (length) *length = length4; |