Module Name:    src
Committed By:   christos
Date:           Mon Dec 16 22:55:45 UTC 2019

Modified Files:
        src/usr.bin/mail: complete.c

Log Message:
revert previous, don't specialcase NUL string.


To generate a diff of this commit:
cvs rdiff -u -r1.22 -r1.23 src/usr.bin/mail/complete.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/mail/complete.c
diff -u src/usr.bin/mail/complete.c:1.22 src/usr.bin/mail/complete.c:1.23
--- src/usr.bin/mail/complete.c:1.22	Sat Dec 14 23:17:38 2019
+++ src/usr.bin/mail/complete.c	Mon Dec 16 17:55:45 2019
@@ -1,4 +1,4 @@
-/*	$NetBSD: complete.c,v 1.22 2019/12/15 04:17:38 christos Exp $	*/
+/*	$NetBSD: complete.c,v 1.23 2019/12/16 22:55:45 christos Exp $	*/
 
 /*-
  * Copyright (c) 1997-2000,2005,2006 The NetBSD Foundation, Inc.
@@ -37,7 +37,7 @@
 
 #include <sys/cdefs.h>
 #ifndef lint
-__RCSID("$NetBSD: complete.c,v 1.22 2019/12/15 04:17:38 christos Exp $");
+__RCSID("$NetBSD: complete.c,v 1.23 2019/12/16 22:55:45 christos Exp $");
 #endif /* not lint */
 
 /*
@@ -339,8 +339,7 @@ complete_filename(EditLine *el, char *wo
 	size_t len;
 
 	if ((fname = strrchr(word, '/')) == NULL) {
-		if (word[0] == '+' && (mf = value(ENAME_FOLDER)) != NULL && *mf)
-		{
+		if (word[0] == '+' && (mf = value(ENAME_FOLDER)) != NULL) {
 			if (mf[0] == '/') {
 				(void)estrlcpy(dir, mf, sizeof(dir));
 			} else {

Reply via email to