Replies: 2 comments
-
fopen returns NULL in case of failures, and set 'errno' as the corresponding error. |
Beta Was this translation helpful? Give feedback.
-
@RiceBiscuits Thanks a lot, turns out it's just a |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
When I use
__coverage__
function from runtime.c , it produces a segmentation fault.I tried checking it with
if(f == NULL) fprintf(stdout, "IT'S NULL\n");
and it does print.Therefore, the line
fprintf(f, "%d,%d\n", line, col);
causes a segfault due to thef
file pointer being NULL.Why does this happen?
Beta Was this translation helpful? Give feedback.
All reactions