Source-Changes-HG archive

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

[src/trunk]: src/lib/libedit fix uninitialized



details:   https://anonhg.NetBSD.org/src/rev/524639da8550
branches:  trunk
changeset: 318770:524639da8550
user:      christos <christos%NetBSD.org@localhost>
date:      Fri May 04 20:38:26 2018 +0000
description:
fix uninitialized

diffstat:

 lib/libedit/filecomplete.c |  8 +++++---
 1 files changed, 5 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 3898e1dd2520 -r 524639da8550 lib/libedit/filecomplete.c
--- a/lib/libedit/filecomplete.c        Fri May 04 20:28:51 2018 +0000
+++ b/lib/libedit/filecomplete.c        Fri May 04 20:38:26 2018 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: filecomplete.c,v 1.50 2018/05/04 16:39:14 abhinav Exp $        */
+/*     $NetBSD: filecomplete.c,v 1.51 2018/05/04 20:38:26 christos Exp $       */
 
 /*-
  * Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include "config.h"
 #if !defined(lint) && !defined(SCCSID)
-__RCSID("$NetBSD: filecomplete.c,v 1.50 2018/05/04 16:39:14 abhinav Exp $");
+__RCSID("$NetBSD: filecomplete.c,v 1.51 2018/05/04 20:38:26 christos Exp $");
 #endif /* not lint && not SCCSID */
 
 #include <sys/types.h>
@@ -552,7 +552,9 @@
                default:
                        cursor_at_quote = 0;
                }
-       }
+       } else
+               cursor_at_quote = 0;
+
        while (ctemp > buffer
            && !wcschr(word_break, ctemp[-1])
            && (!special_prefixes || !wcschr(special_prefixes, ctemp[-1])))



Home | Main Index | Thread Index | Old Index