diff options
author | Simon J. Gerraty <sjg@FreeBSD.org> | 2017-05-10 22:24:09 +0000 |
---|---|---|
committer | Simon J. Gerraty <sjg@FreeBSD.org> | 2017-05-10 22:24:09 +0000 |
commit | e23f3f6ec084e6327368999e09445616b6133911 (patch) | |
tree | 6c4b367ef9e093cf86e79cddc0de646c4081a097 | |
parent | ddae57504b797d05f42b01bb763deef9ec0217e8 (diff) | |
download | src-e23f3f6ec084e6327368999e09445616b6133911.tar.gz src-e23f3f6ec084e6327368999e09445616b6133911.zip |
Ensure buf2 is in scope
Notes
Notes:
svn path=/head/; revision=318161
-rw-r--r-- | contrib/bmake/main.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/bmake/main.c b/contrib/bmake/main.c index fa1238770c09..fe1898805456 100644 --- a/contrib/bmake/main.c +++ b/contrib/bmake/main.c @@ -751,6 +751,7 @@ Main_SetObjdir(const char *fmt, ...) struct stat sb; char *path; char buf[MAXPATHLEN + 1]; + char buf2[MAXPATHLEN + 1]; Boolean rc = FALSE; va_list ap; @@ -759,8 +760,6 @@ Main_SetObjdir(const char *fmt, ...) va_end(ap); if (path[0] != '/') { - char buf2[MAXPATHLEN + 1]; - snprintf(buf2, MAXPATHLEN, "%s/%s", curdir, path); path = buf2; } |