Module Name:    src
Committed By:   christos
Date:           Fri May  4 20:38:27 UTC 2018

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

Log Message:
fix uninitialized


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/lib/libedit/filecomplete.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/filecomplete.c
diff -u src/lib/libedit/filecomplete.c:1.50 src/lib/libedit/filecomplete.c:1.51
--- src/lib/libedit/filecomplete.c:1.50	Fri May  4 12:39:14 2018
+++ src/lib/libedit/filecomplete.c	Fri May  4 16:38:26 2018
@@ -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 @@ find_word_to_complete(const wchar_t * cu
 		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])))

Reply via email to