X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xgamelist.c;h=8839e908e996a0ae28d6f99cfc1d18d867fbaa44;hb=a98a889d21403be8361c2abdd41480d5d02674cd;hp=d2cf8bd9244191cf8eac08c98674b9d490e063e6;hpb=f09bb2248bceae137817926c5bacd1f5b73c0019;p=xboard.git diff --git a/xgamelist.c b/xgamelist.c index d2cf8bd..8839e90 100644 --- a/xgamelist.c +++ b/xgamelist.c @@ -623,7 +623,7 @@ int SaveGameListAsText(FILE *f) ListGame * lg = (ListGame *) gameList.head; int nItem; - if( ((ListGame *) gameList.tailPred)->number <= 0 ) { + if( !glc || ((ListGame *) gameList.tailPred)->number <= 0 ) { DisplayError("Game list not loaded or empty", 0); return False; }