Skip to content
Snippets Groups Projects
Commit a27d580e authored by Dominik Loidolt's avatar Dominik Loidolt
Browse files

add check for parse_cfg function

parent f056a5c8
No related branches found
No related tags found
1 merge request!30Enhanced Error Handling in Chunk Compression Functions
......@@ -552,9 +552,10 @@ static int parse_cfg(FILE *fp, struct cmp_cfg *cfg, struct cmp_par *par)
if (!fp)
abort();
if (!cfg)
abort();
if(!par)
abort();
while (fgets(line, sizeof(line), fp) != NULL) {
if (line[0] == '#' || line[0] == '\n')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment