Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/mail revert previous, don't specialcase NUL string.



details:   https://anonhg.NetBSD.org/src/rev/9cacf7a7c953
branches:  trunk
changeset: 1005688:9cacf7a7c953
user:      christos <christos%NetBSD.org@localhost>
date:      Mon Dec 16 22:55:45 2019 +0000

description:
revert previous, don't specialcase NUL string.

diffstat:

 usr.bin/mail/complete.c |  7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diffs (28 lines):

diff -r b98ae1a792d8 -r 9cacf7a7c953 usr.bin/mail/complete.c
--- a/usr.bin/mail/complete.c   Mon Dec 16 22:48:25 2019 +0000
+++ b/usr.bin/mail/complete.c   Mon Dec 16 22:55:45 2019 +0000
@@ -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 @@
        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 {



Home | Main Index | Thread Index | Old Index