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/b2fee5c2f049
branches: trunk
changeset: 967653:b2fee5c2f049
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 86e30c23c658 -r b2fee5c2f049 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