*
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/port/path.c,v 1.34 2004/08/29 21:08:48 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/path.c,v 1.35 2004/09/02 16:42:00 tgl Exp $
*
*-------------------------------------------------------------------------
*/
static const char *
relative_path(const char *bin_path, const char *other_path)
{
- const char *other_sep = other_path;
-
#ifdef WIN32
/* Driver letters match? */
if (isalpha(*bin_path) && bin_path[1] == ':' &&
return NULL;
bin_path += 2;
other_path += 2;
- other_sep = other_path + 1; /* past separator */
}
#endif
)
break;
- if (IS_DIR_SEP(*other_path))
- other_sep = other_path + 1; /* past separator */
-
bin_path++;
other_path++;
}