This commit fixes isc_glob function on windows environments.
The file_list_t * object pointed to by pglob->reserved was missing
ISC_LIST_INIT intialization macro.
glob(const char *pattern, int flags, void *unused, glob_t *pglob) {
char path[MAX_PATH];
WIN32_FIND_DATAA find_data;
- ;
+ int ec;
HANDLE hnd;
REQUIRE(pattern != NULL);
isc_mem_create(&pglob->mctx);
pglob->reserved = isc_mem_get(pglob->mctx, sizeof(file_list_t));
+ ISC_LIST_INIT(*(file_list_t *)pglob->reserved);
size_t entries = 0;
return (0);
fail:
- int ec = errno;
+ ec = errno;
FindClose(hnd);