Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit PR/57016: Ricky Zhou: declare lastidx



details:   https://anonhg.NetBSD.org/src/rev/8cddb9937f9d
branches:  trunk
changeset: 370175:8cddb9937f9d
user:      christos <christos%NetBSD.org@localhost>
date:      Wed Sep 21 01:33:53 2022 +0000

description:
PR/57016: Ricky Zhou: declare lastidx

diffstat:

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

diffs (27 lines):

diff -r fb6093b431fc -r 8cddb9937f9d lib/libedit/readline.c
--- a/lib/libedit/readline.c    Tue Sep 20 23:41:14 2022 +0000
+++ b/lib/libedit/readline.c    Wed Sep 21 01:33:53 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: readline.c,v 1.175 2022/09/20 23:41:14 christos Exp $  */
+/*     $NetBSD: readline.c,v 1.176 2022/09/21 01:33:53 christos Exp $  */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: readline.c,v 1.175 2022/09/20 23:41:14 christos Exp $");
+__RCSID("$NetBSD: readline.c,v 1.176 2022/09/21 01:33:53 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -478,6 +478,8 @@
        ret = el_gets(e, &count);
 
        if (ret && count > 0) {
+               int lastidx;
+
                buf = strdup(ret);
                if (buf == NULL)
                        goto out;



Home | Main Index | Thread Index | Old Index