Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/games/larn Fix coredump on start.



details:   https://anonhg.NetBSD.org/src/rev/7cd55edd8659
branches:  trunk
changeset: 486522:7cd55edd8659
user:      blymn <blymn%NetBSD.org@localhost>
date:      Wed May 24 14:20:29 2000 +0000

description:
Fix coredump on start.

diffstat:

 games/larn/io.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r feaf2da8e0d6 -r 7cd55edd8659 games/larn/io.c
--- a/games/larn/io.c   Wed May 24 13:20:32 2000 +0000
+++ b/games/larn/io.c   Wed May 24 14:20:29 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: io.c,v 1.9 2000/05/22 12:42:46 blymn Exp $     */
+/*     $NetBSD: io.c,v 1.10 2000/05/24 14:20:29 blymn Exp $    */
 
 /*
  * io.c                         Larn is copyrighted 1986 by Noah Morgan.
@@ -62,7 +62,7 @@
  */
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: io.c,v 1.9 2000/05/22 12:42:46 blymn Exp $");
+__RCSID("$NetBSD: io.c,v 1.10 2000/05/24 14:20:29 blymn Exp $");
 #endif /* not lint */
 
 #include "header.h"
@@ -777,7 +777,7 @@
        char           *capptr;
        char           *term;
 
-       *cap = NULL;
+       cap = NULL;
        switch (t_getent(&info, term = getenv("TERM"))) {
        case -1:
                write(2, "Cannot open termcap file.\n", 26);



Home | Main Index | Thread Index | Old Index