]> 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/branches/nano_2_0_branch/nano@4088 35c25a1d-7b9e-4130-9fde-d3aeb78583b8

ChangeLog
src/files.c

index 7fea983afe3a5a078bd71c1fdc44775bb59ab4db..99997d4bfcbdacf439fe4b64c548951bd6153393 100644 (file)
--- 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
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;