diff options
Diffstat (limited to 'gcc/libgcov.c')
| -rw-r--r-- | gcc/libgcov.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/libgcov.c b/gcc/libgcov.c index 6a41097afb0..3731a9ec9b7 100644 --- a/gcc/libgcov.c +++ b/gcc/libgcov.c @@ -212,6 +212,8 @@ gcov_exit (void) if (IS_DIR_SEPARATOR (gcov_prefix[prefix_length - 1])) prefix_length--; } + else + prefix_length = 0; /* Allocate and initialize the filename scratch space. */ gi_filename = alloca (prefix_length + gcov_max_filename + 1); |

