Fix :?: modifier so that it works again.

This commit is contained in:
sjg 2004-01-08 23:55:05 +00:00
parent 28364b01be
commit 1752434408

View File

@ -1,4 +1,4 @@
/* $NetBSD: var.c,v 1.84 2003/12/26 23:13:32 jmc Exp $ */
/* $NetBSD: var.c,v 1.85 2004/01/08 23:55:05 sjg Exp $ */
/*
* Copyright (c) 1988, 1989, 1990, 1993
@ -69,14 +69,14 @@
*/
#ifdef MAKE_BOOTSTRAP
static char rcsid[] = "$NetBSD: var.c,v 1.84 2003/12/26 23:13:32 jmc Exp $";
static char rcsid[] = "$NetBSD: var.c,v 1.85 2004/01/08 23:55:05 sjg Exp $";
#else
#include <sys/cdefs.h>
#ifndef lint
#if 0
static char sccsid[] = "@(#)var.c 8.3 (Berkeley) 3/19/94";
#else
__RCSID("$NetBSD: var.c,v 1.84 2003/12/26 23:13:32 jmc Exp $");
__RCSID("$NetBSD: var.c,v 1.85 2004/01/08 23:55:05 sjg Exp $");
#endif
#endif /* not lint */
#endif
@ -2882,6 +2882,9 @@ Var_Parse(const char *str, GNode *ctxt, Boolean err, int *lengthPtr,
newStr = UNCONST(pattern.rhs);
free(UNCONST(pattern.lhs));
}
if (v->flags & VAR_JUNK) {
v->flags |= VAR_KEEP;
}
break;
}
#ifndef NO_REGEX