mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 09:09:03 -04:00
[demo] summary_json: call fclose() on json output
This commit is contained in:
parent
c1833eded7
commit
58f08c62ee
@ -384,6 +384,7 @@ summary_json(FILE* f, const char* spec, int rows, int cols){
|
|||||||
results[i].stats.renders, results[i].timens, i < strlen(spec) - 1 ? "," : "") < 0);
|
results[i].stats.renders, results[i].timens, i < strlen(spec) - 1 ? "," : "") < 0);
|
||||||
}
|
}
|
||||||
ret |= (fprintf(f, "}}}\n") < 0);
|
ret |= (fprintf(f, "}}}\n") < 0);
|
||||||
|
ret |= fclose(f);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user