Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit el_map.alt can't be NULL here (Ingo Schwarze)



details:   https://anonhg.NetBSD.org/src/rev/5338004625bc
branches:  trunk
changeset: 345400:5338004625bc
user:      christos <christos%NetBSD.org@localhost>
date:      Tue May 24 19:31:27 2016 +0000

description:
el_map.alt can't be NULL here (Ingo Schwarze)

diffstat:

 lib/libedit/read.c |  6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 1ef5f9b5e779 -r 5338004625bc lib/libedit/read.c
--- a/lib/libedit/read.c        Tue May 24 18:06:42 2016 +0000
+++ b/lib/libedit/read.c        Tue May 24 19:31:27 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: read.c,v 1.99 2016/05/24 17:42:54 christos Exp $       */
+/*     $NetBSD: read.c,v 1.100 2016/05/24 19:31:27 christos Exp $      */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)read.c     8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: read.c,v 1.99 2016/05/24 17:42:54 christos Exp $");
+__RCSID("$NetBSD: read.c,v 1.100 2016/05/24 19:31:27 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -266,8 +266,6 @@
                                break;
                        }
                }
-               if (el->el_map.alt == NULL)
-                       el->el_map.current = el->el_map.key;
        } while (cmd == ED_SEQUENCE_LEAD_IN);
        *cmdnum = cmd;
        return 0;



Home | Main Index | Thread Index | Old Index