Changeset: 8f9ab52cee40 for MonetDB URL: http://dev.monetdb.org/hg/MonetDB?cmd=changeset;node=8f9ab52cee40 Modified Files: gdk/gdk_posix.c Branch: default Log Message:
Merge with Feb2013 branch. diffs (22 lines): diff --git a/gdk/gdk_posix.c b/gdk/gdk_posix.c --- a/gdk/gdk_posix.c +++ b/gdk/gdk_posix.c @@ -846,13 +846,11 @@ MT_mallinfo(void) int MT_path_absolute(const char *pathname) { - char *drive_end = strchr(pathname, ':'); - char *path_start = strchr(pathname, '\\'); - - if (path_start == NULL) { - return 0; - } - return (path_start == pathname || drive_end == (path_start - 1)); + /* drive letter, colon, directory separator */ + return ((('a' <= pathname[0] && pathname[0] <= 'z') || + ('A' <= pathname[0] && pathname[0] <= 'Z')) && + pathname[1] == ':' && + (pathname[2] == '/' || pathname[2] == '\\')); } _______________________________________________ checkin-list mailing list checkin-list@monetdb.org http://mail.monetdb.org/mailman/listinfo/checkin-list