Handle case where file can't be found

This commit is contained in:
Bruce Hill 2025-02-28 18:48:36 -05:00
parent 39e169d5b4
commit afed636252

View File

@ -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;