X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xgamelist.c;h=edc5e65549a27ae8416a72e8c731df008b30ac7b;hb=a3e7cc9b3eb04ffb69fd73b47c06758f73316373;hp=608e82e120ead43601ffdd13355a68efd03b9045;hpb=3ba8afd8c058bfd2a62b3fb73699a824537fc322;p=xboard.git diff --git a/xgamelist.c b/xgamelist.c index 608e82e..edc5e65 100644 --- a/xgamelist.c +++ b/xgamelist.c @@ -363,7 +363,7 @@ GameListPrepare(int byPos) lg->position = pos; lg = (ListGame *) lg->node.succ; } -GetTimeMark(&t2);printf("GameListPrepare %d msec\n", SubtractTimeMarks(&t2,&t)); +GetTimeMark(&t2);printf("GameListPrepare %ld msec\n", SubtractTimeMarks(&t2,&t)); DisplayTitle("XBoard"); *st = NULL; return listLength; @@ -479,6 +479,8 @@ GameListPopUp(fp, filename) if (glc == NULL) { glc = (GameListClosure *) calloc(1, sizeof(GameListClosure)); glc->x = glc->y = -1; + glc->filename = NULL; + glc->shell = NULL; } GameListPrepare(False); // [HGM] filter: code put in separate routine @@ -488,7 +490,6 @@ GameListPopUp(fp, filename) if (glc->filename != NULL) free(glc->filename); glc->filename = StrSave(filename); - if (glc->shell == NULL) { glc->shell = GameListCreate(filename, GameListCallback, glc); } else {