fix another c89 issue
Some checks failed
pyrite-dev/milsko/pipeline/head There was a failure building this commit

This commit is contained in:
IoI_xD 2026-08-09 15:27:54 +09:00
commit f652523963

View file

@ -19,12 +19,13 @@ typedef struct dir {
void* MwDirectoryOpen(const char* path) { void* MwDirectoryOpen(const char* path) {
dir_t* dir = malloc(sizeof(*dir)); dir_t* dir = malloc(sizeof(*dir));
if(!dir) { char * p;
if(!dir) {
printf("Out Of Memory\n"); printf("Out Of Memory\n");
return NULL; return NULL;
} }
#ifdef _WIN32 #ifdef _WIN32
char* p = MwStringDuplicate(path); p = MwStringDuplicate(path);
if(strchr(path, '/') != NULL) { if(strchr(path, '/') != NULL) {
MwStringConcat(p, "/"); MwStringConcat(p, "/");
} else { } else {