Module Name:    src
Committed By:   christos
Date:           Thu Sep 13 01:26:33 UTC 2018

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/lib/libedit/history.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/history.c
diff -u src/lib/libedit/history.c:1.60 src/lib/libedit/history.c:1.61
--- src/lib/libedit/history.c:1.60	Wed Sep 12 18:10:35 2018
+++ src/lib/libedit/history.c	Wed Sep 12 21:26:33 2018
@@ -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 @@ history_load(TYPE(History) *h, const cha
 		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;
 		}

Reply via email to