main: set path name to "<stdin>" when arg is "-" Signed-off-by: Sebastian <sebastian@sebsite.pw>
1 files changed, 1 insertions(+), 0 deletions(-) M src/main.c
M src/main.c => src/main.c +1 -0
@@ 140,6 140,7 @@ main(int argc, char *argv[]) const char *path = argv[optind + i]; if (strcmp(path, "-") == 0) { in = stdin; + sources[i + 1] = "<stdin>"; } else { in = fopen(path, "r"); struct stat buf;