Skip to content

Commit bffb638

Browse files
committed
Clearify macro IS_PATH_VAR_SEP in path.c so it is clear this is a path
variable, not a directory path.
1 parent 0af695f commit bffb638

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/port/path.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@
4141
#endif
4242

4343
#ifndef WIN32
44-
#define IS_PATH_SEP(ch) ((ch) == ':')
44+
#define IS_PATH_VAR_SEP(ch) ((ch) == ':')
4545
#else
46-
#define IS_PATH_SEP(ch) ((ch) == ';')
46+
#define IS_PATH_VAR_SEP(ch) ((ch) == ';')
4747
#endif
4848

4949
static void make_relative_path(char *ret_path, const char *target_path,
@@ -110,7 +110,7 @@ first_path_separator(const char *pathlist)
110110

111111
/* skip_drive is not needed */
112112
for (p = pathlist; *p; p++)
113-
if (IS_PATH_SEP(*p))
113+
if (IS_PATH_VAR_SEP(*p))
114114
return (char *) p;
115115
return NULL;
116116
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy