commit 663c99ffd0f9f02049d200e33414cab1bebb8156
parent efd759bbfba531565f41843ec10d252a917f8cde
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Thu, 25 Jan 2024 15:32:00 +0100
make: Return the pushed back character in back()
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/cmd/make/parser.c b/src/cmd/make/parser.c
@@ -357,7 +357,7 @@ back(int c)
if (c == EOF)
return c;
assert(input->pos > 0);
- input->buf[--input->pos] = c;
+ return input->buf[--input->pos] = c;
}
static void