diff options
author | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-25 22:05:40 +0000 |
---|---|---|
committer | ghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2001-09-25 22:05:40 +0000 |
commit | 92f03c00f7b9663e2918f0a387f402d934a9c462 (patch) | |
tree | 62cb43e30c546c2f226241b25ba952e4e71512cd /libiberty/concat.c | |
parent | 1764b9f5219f8e5899683921f0ea000b21cc0533 (diff) | |
download | gcc-92f03c00f7b9663e2918f0a387f402d934a9c462.tar.gz |
* concat.c (reconcat): Fix for traditional C.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@45814 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libiberty/concat.c')
-rw-r--r-- | libiberty/concat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libiberty/concat.c b/libiberty/concat.c index 136e8be866e..cf026cf8f4c 100644 --- a/libiberty/concat.c +++ b/libiberty/concat.c @@ -188,10 +188,9 @@ reconcat VPARAMS ((char *optr, const char *first, ...)) VA_FIXEDARG (args, char *, optr); VA_FIXEDARG (args, const char *, first); vconcat_copy (newstr, first, args); - VA_CLOSE (args); - - if (optr) + if (optr) /* Done before VA_CLOSE so optr stays in scope for K&R C. */ free (optr); + VA_CLOSE (args); return newstr; } |