Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit Fix an obvious, but almost invisible typo (avoid...



details:   https://anonhg.NetBSD.org/src/rev/ec4933868ffa
branches:  trunk
changeset: 825069:ec4933868ffa
user:      kre <kre%NetBSD.org@localhost>
date:      Thu Jun 29 02:54:40 2017 +0000

description:
Fix an obvious, but almost invisible typo (avoid some core dumps).

diffstat:

 lib/libedit/literal.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 8f8ef4fc0114 -r ec4933868ffa lib/libedit/literal.c
--- a/lib/libedit/literal.c     Thu Jun 29 00:11:28 2017 +0000
+++ b/lib/libedit/literal.c     Thu Jun 29 02:54:40 2017 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: literal.c,v 1.1 2017/06/27 23:25:13 christos Exp $     */
+/*     $NetBSD: literal.c,v 1.2 2017/06/29 02:54:40 kre Exp $  */
 
 /*-
  * Copyright (c) 2017 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: literal.c,v 1.1 2017/06/27 23:25:13 christos Exp $");
+__RCSID("$NetBSD: literal.c,v 1.2 2017/06/29 02:54:40 kre Exp $");
 #endif /* not lint && not SCCSID */
 
 /*
@@ -63,7 +63,7 @@
 {
        el_literal_t *l = &el->el_literal;
        size_t i;
-       for (i = 0; i < l->l_idx; l++)
+       for (i = 0; i < l->l_idx; i++)
                el_free(l->l_buf[i]);
        l->l_len = 0;
        l->l_idx = 0;



Home | Main Index | Thread Index | Old Index