X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=634b710ee5eb3d9d68132b96c09bee15bca6667e;hb=25a2de7c48d693f8dd3ecc8dd9b794b140f2bdaf;hp=af2b247c0990482f76a7e106b00cf42a00385b89;hpb=7c9ee0544821f7981792be03e90ba15e9a8aeada;p=xboard.git diff --git a/backend.c b/backend.c index af2b247..634b710 100644 --- a/backend.c +++ b/backend.c @@ -1252,7 +1252,7 @@ GetTimeQuota (int movenr, int lastUsed, char *tcString) long time, increment; char *s = tcString; - if(!*s) return 0; // empty TC string means we ran out of the last sudden-death version + if(!s || !*s) return 0; // empty TC string means we ran out of the last sudden-death version do { if(moves) NextSessionFromString(&s, &moves, &time, &increment, &incType); nextSession = s; suddenDeath = moves == 0 && increment == 0;