]> git.wh0rd.org Git - nano.git/commitdiff
in tail(), remove unneeded if statement
authorDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 19 Apr 2007 04:12:54 +0000 (04:12 +0000)
committerDavid Lawrence Ramsey <pooka109@gmail.com>
Thu, 19 Apr 2007 04:12:54 +0000 (04:12 +0000)
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@4088 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/files.c

index a6ebc2369e09132ec9403738663dafbed0537eae..26673b8a6387e83dc64a3d4c442655dcbb3ed79f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2007-04-19  David Lawrence Ramsey  <pooka109@gmail.com>
+
+       * files.c (tail): Remove unneeded if statement.
+
 2007-04-18  John M. Gabriele  <jmg3000@gmail.com>
 
        * doc/faq.html: Add a new section 4.14 (with minor tweaks by
index 966c28d61207c1cff8ba81d8468de585d9ec98d1..a50e161993241030995fbe478f406670164cd40d 100644 (file)
@@ -2422,7 +2422,7 @@ const char *tail(const char *foo)
 
     if (tmp == NULL)
        tmp = foo;
-    else if (*tmp == '/')
+    else
        tmp++;
 
     return tmp;