Handle case where file can't be found
This commit is contained in:
parent
39e169d5b4
commit
afed636252
@ -403,6 +403,7 @@ static void print_stack_line(FILE *out, OptionalText_t fn_name, const char *file
|
||||
fprintf(out, "\n");
|
||||
|
||||
FILE *f = fopen(filename, "r");
|
||||
if (!f) return;
|
||||
char *line = NULL;
|
||||
size_t size = 0;
|
||||
ssize_t nread;
|
||||
|
Loading…
Reference in New Issue
Block a user