Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libedit Initialize patbuf (Ingo Schwarze)
details: https://anonhg.NetBSD.org/src/rev/57b705302f94
branches: trunk
changeset: 344940:57b705302f94
user: christos <christos%NetBSD.org@localhost>
date: Thu Apr 28 12:27:45 2016 +0000
description:
Initialize patbuf (Ingo Schwarze)
diffstat:
lib/libedit/search.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (30 lines):
diff -r c1ee2fa03ce7 -r 57b705302f94 lib/libedit/search.c
--- a/lib/libedit/search.c Thu Apr 28 12:24:51 2016 +0000
+++ b/lib/libedit/search.c Thu Apr 28 12:27:45 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: search.c,v 1.45 2016/04/18 17:01:19 christos Exp $ */
+/* $NetBSD: search.c,v 1.46 2016/04/28 12:27:45 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)search.c 8.1 (Berkeley) 6/4/93";
#else
-__RCSID("$NetBSD: search.c,v 1.45 2016/04/18 17:01:19 christos Exp $");
+__RCSID("$NetBSD: search.c,v 1.46 2016/04/28 12:27:45 christos Exp $");
#endif
#endif /* not lint && not SCCSID */
@@ -74,9 +74,10 @@
sizeof(*el->el_search.patbuf));
if (el->el_search.patbuf == NULL)
return -1;
+ el->el_search.patbuf[0] = L'\0';
el->el_search.patlen = 0;
el->el_search.patdir = -1;
- el->el_search.chacha = '\0';
+ el->el_search.chacha = L'\0';
el->el_search.chadir = CHAR_FWD;
el->el_search.chatflg = 0;
return 0;
Home |
Main Index |
Thread Index |
Old Index