diff --git a/src/sbbs3/getstats.c b/src/sbbs3/getstats.c index ef6cf4bd9a59adff1668fe8bbde9f8c802f6f06a..6cdd9fd18e0063b64759bb8ed618c52f56b5f39d 100644 --- a/src/sbbs3/getstats.c +++ b/src/sbbs3/getstats.c @@ -163,8 +163,10 @@ BOOL getstats(scfg_t* cfg, uint node, stats_t* stats) } legacy_stats; SAFEPRINTF(path,"%sdsts.dab",node ? cfg->node_path[node-1] : cfg->ctrl_dir); + if(!fexistcase(path)) + return TRUE; if((file=nopen(path,O_RDONLY))==-1) { - return(FALSE); + return(FALSE); } int rd = read(file, &legacy_stats, sizeof(legacy_stats)); close(file);