svn commit: r239517 - stable/9/usr.bin/make
Dimitry Andric
dim at FreeBSD.org
Tue Aug 21 18:55:20 UTC 2012
Author: dim
Date: Tue Aug 21 18:55:19 2012
New Revision: 239517
URL: http://svn.freebsd.org/changeset/base/239517
Log:
MFC r239071:
In usr.bin/make/var.c, function ParseModifier(), initialize the 'error'
variable to NULL, to avoid using it uninitialized in certain cases.
Modified:
stable/9/usr.bin/make/var.c
Directory Properties:
stable/9/usr.bin/make/ (props changed)
Modified: stable/9/usr.bin/make/var.c
==============================================================================
--- stable/9/usr.bin/make/var.c Tue Aug 21 18:45:55 2012 (r239516)
+++ stable/9/usr.bin/make/var.c Tue Aug 21 18:55:19 2012 (r239517)
@@ -1765,7 +1765,7 @@ ParseModifier(VarParser *vp, char startc
if ((vp->ptr[0] == 's') &&
(vp->ptr[1] == 'h') &&
(vp->ptr[2] == endc || vp->ptr[2] == ':')) {
- const char *error;
+ const char *error = NULL;
if (vp->execute) {
newStr = Buf_Peel(
More information about the svn-src-stable-9
mailing list