ben 97/12/26 07:08:15
Modified: src/os/unix os-inline.c
src/os/win32 os.h
Log:
Remove redundant test from os_is_path_absolute().
Revision Changes Path
1.2 +1 -1 apachen/src/os/unix/os-inline.c
Index: os-inline.c
===================================================================
RCS file: /export/home/cvs/apachen/src/os/unix/os-inline.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- os-inline.c 1997/09/12 07:28:50 1.1
+++ os-inline.c 1997/12/26 15:08:13 1.2
@@ -26,5 +26,5 @@
INLINE int os_is_path_absolute(char *file)
{
- return (file && file[0] == '/' ? 1 : 0);
+ return file[0] == '/';
}
1.9 +1 -1 apachen/src/os/win32/os.h
Index: os.h
===================================================================
RCS file: /export/home/cvs/apachen/src/os/win32/os.h,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- os.h 1997/12/01 12:10:16 1.8
+++ os.h 1997/12/26 15:08:14 1.9
@@ -79,7 +79,7 @@
/* For now, just do the same check that http_request.c and mod_alias.c
* do.
*/
- return file && (file[0] == '/' || file[1] == ':');
+ return file[0] == '/' || file[1] == ':';
}
#define stat(f,ps) os_stat(f,ps)