diff options
Diffstat (limited to 'libgfortran/runtime')
-rw-r--r-- | libgfortran/runtime/main.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libgfortran/runtime/main.c b/libgfortran/runtime/main.c index bc8dab449e8..6ce5388c6f4 100644 --- a/libgfortran/runtime/main.c +++ b/libgfortran/runtime/main.c @@ -149,6 +149,8 @@ find_addr2line (void) #ifdef HAVE_ACCESS #define A2L_LEN 10 char *path = getenv ("PATH"); + if (!path) + return; size_t n = strlen (path); char ap[n + 1 + A2L_LEN]; size_t ai = 0; |