summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/cvs/os2/filesubr.c
diff options
context:
space:
mode:
authorThorsten Lockert <tholo@cvs.openbsd.org>1998-03-12 07:00:36 +0000
committerThorsten Lockert <tholo@cvs.openbsd.org>1998-03-12 07:00:36 +0000
commit9782849f071b87e896b6c70a7b134962fe858be5 (patch)
treee056a883bbd212cd5face5366d75353f868eedd7 /gnu/usr.bin/cvs/os2/filesubr.c
parentea3c335b4bf326bd21007b71f18d06a885682de1 (diff)
Latest version from Cyclic
Diffstat (limited to 'gnu/usr.bin/cvs/os2/filesubr.c')
-rw-r--r--gnu/usr.bin/cvs/os2/filesubr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gnu/usr.bin/cvs/os2/filesubr.c b/gnu/usr.bin/cvs/os2/filesubr.c
index 2413dad093f..5047e5b4548 100644
--- a/gnu/usr.bin/cvs/os2/filesubr.c
+++ b/gnu/usr.bin/cvs/os2/filesubr.c
@@ -741,7 +741,7 @@ last_component (char *path)
if (ISDIRSEP (*scan))
last = scan;
- if (last)
+ if (last && (last != path))
return last + 1;
else
return path;