From 21fae29e2f728ffabc1167c15fc11081e84a0dbd Mon Sep 17 00:00:00 2001 From: David Lawrence Ramsey Date: Thu, 19 Apr 2007 04:12:54 +0000 Subject: [PATCH] in tail(), remove unneeded if statement git-svn-id: svn://svn.savannah.gnu.org/nano/branches/nano_2_0_branch/nano@4088 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 2 ++ src/files.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 7fea983a..99997d4b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -23,6 +23,8 @@ CVS code - input_tab() - Don't bother checking if num_matches is less than zero, as it's a size_t and hence unsigned. (DLR) + tail() + - Remove unneeded if statement. (DLR) - rcfile.c: parse_include() - Open files using their full paths whenever possible, so that diff --git a/src/files.c b/src/files.c index 966c28d6..a50e1619 100644 --- a/src/files.c +++ b/src/files.c @@ -2422,7 +2422,7 @@ const char *tail(const char *foo) if (tmp == NULL) tmp = foo; - else if (*tmp == '/') + else tmp++; return tmp; -- 2.39.5