From 9429078c33e7c08a5c72fd97ebd6f7165411b9ae Mon Sep 17 00:00:00 2001 From: Dima Dorfman Date: Mon, 3 Sep 2001 14:19:46 +0000 Subject: [PATCH] `list' should be an extern'd `char **', not a local `char *' which we never set. Ideally, we'd get the extern from tutor.h, but that defines a number of other variables that conflict with ours. This fixes a segmentation fault when trying to return to the main menu. PR: 30172 --- games/backgammon/teachgammon/ttext2.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/games/backgammon/teachgammon/ttext2.c b/games/backgammon/teachgammon/ttext2.c index f6ca2c3426e3..d64659ef3e06 100644 --- a/games/backgammon/teachgammon/ttext2.c +++ b/games/backgammon/teachgammon/ttext2.c @@ -41,7 +41,8 @@ static const char rcsid[] = #include "back.h" -char *prompt, *list, *opts; +extern const char *const list[]; +char *prompt, *opts; const char *const doubl[] = { "\nDoubling:",