diff --git a/client/cs_statefile.C b/client/cs_statefile.C index 3a9c382fe0..1e5cbeb994 100644 --- a/client/cs_statefile.C +++ b/client/cs_statefile.C @@ -163,6 +163,7 @@ done: int CLIENT_STATE::parse_venue() { char buf[256]; FILE* f = fopen(STATE_FILE_NAME, "r"); + if (!f) return 0; while (fgets(buf, 256, f)) { if (match_tag(buf, "")) { break;