X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=backend.c;h=634b710ee5eb3d9d68132b96c09bee15bca6667e;hb=a61f78756889e18aa279dc273bd99b9af60468d7;hp=af2b247c0990482f76a7e106b00cf42a00385b89;hpb=eef912bdf8a61db11e2d197a09e877fda54943f8;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;