From 380a70831a7df46a6e1c8b9d7e50a95a756c5c04 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/trunk/nano@4088 35c25a1d-7b9e-4130-9fde-d3aeb78583b8 --- ChangeLog | 4 ++++ src/files.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a6ebc236..26673b8a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2007-04-19 David Lawrence Ramsey + + * files.c (tail): Remove unneeded if statement. + 2007-04-18 John M. Gabriele * doc/faq.html: Add a new section 4.14 (with minor tweaks by 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