From: David Lawrence Ramsey Date: Thu, 19 Apr 2007 04:12:54 +0000 (+0000) Subject: in tail(), remove unneeded if statement X-Git-Tag: v2.0.5~8 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=21fae29e2f728ffabc1167c15fc11081e84a0dbd;p=nano.git 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 --- 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;