Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit more efficient to use decode_result :-) Pointed ...



details:   https://anonhg.NetBSD.org/src/rev/fcea4500dbfe
branches:  trunk
changeset: 433403:fcea4500dbfe
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 13 01:26:33 2018 +0000

description:
more efficient to use decode_result :-) Pointed out by kre@

diffstat:

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

diffs (27 lines):

diff -r 43a4f7559551 -r fcea4500dbfe lib/libedit/history.c
--- a/lib/libedit/history.c     Wed Sep 12 23:33:31 2018 +0000
+++ b/lib/libedit/history.c     Thu Sep 13 01:26:33 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: history.c,v 1.60 2018/09/12 22:10:35 christos Exp $    */
+/*     $NetBSD: history.c,v 1.61 2018/09/13 01:26:33 christos Exp $    */
 
 /*-
  * Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)history.c  8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: history.c,v 1.60 2018/09/12 22:10:35 christos Exp $");
+__RCSID("$NetBSD: history.c,v 1.61 2018/09/13 01:26:33 christos Exp $");
 #endif
 #endif /* not lint && not SCCSID */
 
@@ -811,7 +811,7 @@
                decode_result = ct_decode_string(ptr, &conv);
                if (decode_result == NULL)
                        continue;
-               if (HENTER(h, &ev, ct_decode_string(ptr, &conv)) == -1) {
+               if (HENTER(h, &ev, decode_result)) == -1) {
                        i = -1;
                        goto oomem;
                }



Home | Main Index | Thread Index | Old Index