diff options
Diffstat (limited to 'libiberty/make-relative-prefix.c')
-rw-r--r-- | libiberty/make-relative-prefix.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libiberty/make-relative-prefix.c b/libiberty/make-relative-prefix.c index ae1ac54..ef9177e 100644 --- a/libiberty/make-relative-prefix.c +++ b/libiberty/make-relative-prefix.c @@ -362,6 +362,7 @@ make_relative_prefix (progname, bin_prefix, prefix) return NULL; /* Build up the pathnames in argv[0]. */ + *ret = '\0'; for (i = 0; i < prog_num; i++) strcat (ret, prog_dirs[i]); |