From dfbe788856ffb5dff00557ead418de7642a933e1 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 14 Sep 2023 00:05:24 -0400 Subject: [PATCH] main: set path name to "" when arg is "-" Signed-off-by: Sebastian --- src/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.c b/src/main.c index 476d7ac..43961e6 100644 --- a/src/main.c +++ b/src/main.c @@ -140,6 +140,7 @@ main(int argc, char *argv[]) const char *path = argv[optind + i]; if (strcmp(path, "-") == 0) { in = stdin; + sources[i + 1] = ""; } else { in = fopen(path, "r"); struct stat buf; -- 2.45.2