diff options
-rw-r--r-- | games/battlestar/com6.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/games/battlestar/com6.c b/games/battlestar/com6.c index ec01b11..a22b0fb 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; |