X-Git-Url: http://ncurses.scripts.mit.edu/?a=blobdiff_plain;f=test%2Fcardfile.c;h=78b659b3ab127b93842c459bca7a47c1739e8c27;hb=3d46d7e9d3e210417f34acf3b469378558398d07;hp=a782342e226b61df055d7f4d36af69a401a509f8;hpb=9d37907c2305ee3dc7b829e98a465c3def2074f0;p=ncurses.git diff --git a/test/cardfile.c b/test/cardfile.c index a782342e..78b659b3 100644 --- a/test/cardfile.c +++ b/test/cardfile.c @@ -1,5 +1,6 @@ /**************************************************************************** - * Copyright (c) 1999-2017,2019 Free Software Foundation, Inc. * + * Copyright 2019-2020,2021 Thomas E. Dickey * + * Copyright 1999-2016,2017 Free Software Foundation, Inc. * * * * Permission is hereby granted, free of charge, to any person obtaining a * * copy of this software and associated documentation files (the * @@ -29,7 +30,7 @@ /* * Author: Thomas E. Dickey * - * $Id: cardfile.c,v 1.46 2019/08/17 21:49:40 tom Exp $ + * $Id: cardfile.c,v 1.48 2021/03/20 18:23:14 tom Exp $ * * File format: text beginning in column 1 is a title; other text is content. */ @@ -295,7 +296,7 @@ prev_card(CARD * now) static CARD * first_card(CARD * now) { - if (!isVisible(now)) + if (now != NULL && !isVisible(now)) now = next_card(now); return now; }