notcurses_reset_stats(): allow NULL for second parameter

pull/555/head
nick black 4 years ago
parent 86b526bdcb
commit 0d8f5d1b92
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -717,7 +717,9 @@ void notcurses_stats(const notcurses* nc, ncstats* stats){
}
void notcurses_reset_stats(notcurses* nc, ncstats* stats){
memcpy(stats, &nc->stats, sizeof(*stats));
if(stats){
memcpy(stats, &nc->stats, sizeof(*stats));
}
stash_stats(nc);
}

Loading…
Cancel
Save