Skip to content
Snippets Groups Projects
Commit 2a4b038f authored by rswindell's avatar rswindell
Browse files

Zeroing some stat/time variables in logonstats(), just incase the read fails.

parent d9dd3db8
Branches
Tags
No related merge requests found
......@@ -564,11 +564,12 @@ ulong sbbs_t::logonstats()
char str[256];
int dsts,csts;
uint i;
time_t update_t;
time_t update_t=0;
stats_t stats;
node_t node;
struct tm * tm, update_tm;
memset(&stats,0,sizeof(stats));
sprintf(str,"%sdsts.dab",cfg.ctrl_dir);
if((dsts=nopen(str,O_RDWR))==-1) {
errormsg(WHERE,ERR_OPEN,str,O_RDWR);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment