Don't override the PATH_SEP definition if present

PATH_SEP is declared on Windows to be ";" and not ":"
by include/config.h.w32.

lib/base/context.c and lib/hx509.c must not override an existing
setting.  Otherwise, file lists cannot be separated and will be
treated as a single file name.

Change-Id: I5521188faca36e41fbae95fbb8942970eab261c8
This commit is contained in:
Jeffrey Altman
2020-05-25 14:43:15 -04:00
committed by Nicolas Williams
parent 6bdbf3ca27
commit aa47b5f1a3
2 changed files with 6 additions and 2 deletions

View File

@@ -176,7 +176,9 @@ heim_set_debug_dest(heim_context context, heim_log_facility *fac)
return 0;
}
#define PATH_SEP ":"
#ifndef PATH_SEP
# define PATH_SEP ":"
#endif
static heim_error_code
add_file(char ***pfilenames, int *len, char *file)