Module Name:    src
Committed By:   christos
Date:           Tue May 24 19:31:27 UTC 2016

Modified Files:
        src/lib/libedit: read.c

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


To generate a diff of this commit:
cvs rdiff -u -r1.99 -r1.100 src/lib/libedit/read.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libedit/read.c
diff -u src/lib/libedit/read.c:1.99 src/lib/libedit/read.c:1.100
--- src/lib/libedit/read.c:1.99	Tue May 24 13:42:54 2016
+++ src/lib/libedit/read.c	Tue May 24 15:31:27 2016
@@ -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 @@ read_getcmd(EditLine *el, el_action_t *c
 				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;

Reply via email to