aboutsummaryrefslogtreecommitdiff
path: root/games/battlestar
diff options
context:
space:
mode:
Diffstat (limited to 'games/battlestar')
-rw-r--r--games/battlestar/com6.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c
index ec01b111292a..a22b0fb7fa43 100644
--- a/games/battlestar/com6.c
+++ b/games/battlestar/com6.c
@@ -29,6 +29,8 @@
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
+ *
+ * $FreeBSD$
*/
#ifndef lint
@@ -105,7 +107,12 @@ char ch;
struct timeval tv;
char *date;
time_t tvsec;
- int s = sigblock(sigmask(SIGINT));
+ int s;
+
+ if (score_fp == NULL)
+ return;
+
+ s = sigblock(sigmask(SIGINT));
gettimeofday(&tv, (struct timezone *)0); /* can't call time */
tvsec = (time_t) tv.tv_sec;