dududuguo opened this issue 8 months ago · 0 comments
$ ./bgrep -B 23 Segmentation fault
One parameter file is missing, and a Segmentation fault occurs. Since char *h = argv[1]; argv[1] does not exist. Adding a check is a good option. Thank you!