From: H.G.Muller Date: Sat, 6 Sep 2014 21:13:01 +0000 (+0200) Subject: Fix syntax error in bitbase code X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=c7c73acb1eafed45587dd140ef7fdf518415edd9;p=xboard.git Fix syntax error in bitbase code --- diff --git a/backend.c b/backend.c index 57775f3..948081f 100644 --- a/backend.c +++ b/backend.c @@ -8371,10 +8371,10 @@ BitbaseProbe () // probe EGBB if(loaded == 2) return 13; // loading failed before if(loaded == 0) { - loaded = 2; // prepare for failure char *p, *path = strstr(appData.egtFormats, "scorpio:"), buf[MSG_SIZ]; HMODULE lib; PLOAD_EGBB loadBB; + loaded = 2; // prepare for failure if(!path) return 13; // no egbb installed strncpy(buf, path + 8, MSG_SIZ); if(p = strchr(buf, ',')) *p = NULLCHAR; else p = buf + strlen(buf);