Skip to content

Segmentation fault #18

@dududuguo

Description

@dududuguo

$ ./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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions