Skip to content

Commit 26f8919

Browse files
authored
Fix: handle MPS file open failure (#96)
1 parent 1b8e099 commit 26f8919

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/mps_parser.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -408,6 +408,7 @@ lp_problem_t *read_mps_file(const char *filename)
408408
if (!reader)
409409
{
410410
fprintf(stderr, "ERROR: Could not open file %s\n", filename);
411+
return NULL;
411412
}
412413

413414
namemap_init(&state.row_map, 1024);

0 commit comments

Comments
 (0)