Changeset 364 in Main for trunk/Common/dir.c
- Timestamp:
- Oct 17, 2024, 9:47:01 AM (4 weeks ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Common/dir.c
r315 r364 70 70 return r; 71 71 #else 72 DIR* dir = opendir(path); 72 char* fxpath = cm_strcat(path, "/"); 73 DIR* dir = opendir(fxpath); 73 74 if(dir != NULL) { 74 75 char** r = malloc(sizeof(*r)); … … 109 110 110 111 closedir(dir); 112 free(fxpath); 111 113 112 114 return r; 113 115 } else { 116 free(fxpath); 114 117 return NULL; 115 118 }
Note:
See TracChangeset
for help on using the changeset viewer.