summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2011-02-03 03:28:14 +0000
committerBruce Momjian2011-02-03 03:28:45 +0000
commitbffb638d16999ee7d3c8796e77dd87ac82719c7d (patch)
tree5e9c8cd047f906deee58af9a41bc17401320a281
parent0af695fd43b6889613a4035e3cdfcc0fc1b7936a (diff)
Clearify macro IS_PATH_VAR_SEP in path.c so it is clear this is a path
variable, not a directory path.
-rw-r--r--src/port/path.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/port/path.c b/src/port/path.c
index ed2241f9ec..08397d5b99 100644
--- a/src/port/path.c
+++ b/src/port/path.c
@@ -41,9 +41,9 @@
#endif
#ifndef WIN32
-#define IS_PATH_SEP(ch) ((ch) == ':')
+#define IS_PATH_VAR_SEP(ch) ((ch) == ':')
#else
-#define IS_PATH_SEP(ch) ((ch) == ';')
+#define IS_PATH_VAR_SEP(ch) ((ch) == ';')
#endif
static void make_relative_path(char *ret_path, const char *target_path,
@@ -110,7 +110,7 @@ first_path_separator(const char *pathlist)
/* skip_drive is not needed */
for (p = pathlist; *p; p++)
- if (IS_PATH_SEP(*p))
+ if (IS_PATH_VAR_SEP(*p))
return (char *) p;
return NULL;
}