commit 21c3b7490331139d994775aa00fe96f407cf960e
parent a5daeaadac2ae9e7ed83f3565d606210ea263a2e
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Sun, 21 Jan 2024 11:34:22 +0100
make: Fix dumpmacros()
The field value was used instead of name to get the value of the
macro.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/make/parser.c b/src/cmd/make/parser.c
@@ -58,7 +58,7 @@ dumpmacros(void)
for (pp = htab; pp < &htab[TABSIZ]; ++pp) {
for (p = *pp; p; p = p->next)
- printf("%s = %s\n", p->name, getmacro(p->value));
+ printf("%s = %s\n", p->name, getmacro(p->name));
}
}