tmbinc/bgrep

Segmentation fault

Opened this issue · 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!