Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 May 2017 22:24:09 +0000 (UTC)
From:      "Simon J. Gerraty" <sjg@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r318161 - head/contrib/bmake
Message-ID:  <201705102224.v4AMO9SQ078718@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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;
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201705102224.v4AMO9SQ078718>