summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>1997-11-07 02:34:50 +0000
committermsmith <msmith@FreeBSD.org>1997-11-07 02:34:50 +0000
commitcfad384768e49ed71d3729a2d24879574faf14ad (patch)
tree1d464f2fdb2ffd7794bcfb4c73abba31e6430758 /sys/ddb
parent07c6e768fc26570f7ed11d9bc774162ba694cade (diff)
downloadFreeBSD-src-cfad384768e49ed71d3729a2d24879574faf14ad.zip
FreeBSD-src-cfad384768e49ed71d3729a2d24879574faf14ad.tar.gz
Don't try to do anything with the input history if MALLOC() for the buffer
failed. This broke early debugging.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_input.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/ddb/db_input.c b/sys/ddb/db_input.c
index 8b91cc1..888aa83 100644
--- a/sys/ddb/db_input.c
+++ b/sys/ddb/db_input.c
@@ -23,7 +23,7 @@
* any improvements or extensions that they make and grant Carnegie the
* rights to redistribute these changes.
*
- * $Id: db_input.c,v 1.18 1997/04/12 17:35:02 joerg Exp $
+ * $Id: db_input.c,v 1.19 1997/08/17 21:21:50 joerg Exp $
*/
/*
@@ -337,7 +337,7 @@ db_readline(lstart, lsize)
db_printf("\n"); /* synch output position */
*db_le = 0;
- if (db_le - db_lbuf_start > 1) {
+ if (db_lhistory && (db_le - db_lbuf_start > 1)) {
/* Maintain input line history for non-empty lines. */
if (++db_lhistidx == DB_LHIST_NLINES) {
/* Rotate history. */
OpenPOWER on IntegriCloud