svn commit: r318161 - head/contrib/bmake
Simon J. Gerraty
sjg at FreeBSD.org
Wed May 10 22:24:10 UTC 2017
Author: sjg
Date: Wed May 10 22:24:09 2017
New Revision: 318161
URL: https://svnweb.freebsd.org/changeset/base/318161
Log:
Ensure buf2 is in scope
Modified:
head/contrib/bmake/main.c
Modified: head/contrib/bmake/main.c
==============================================================================
--- head/contrib/bmake/main.c Wed May 10 22:13:47 2017 (r318160)
+++ head/contrib/bmake/main.c Wed May 10 22:24:09 2017 (r318161)
@@ -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;
}
More information about the svn-src-head
mailing list