Skip to content

Commit

Permalink
Get mz_dir_make to test for an empty path
Browse files Browse the repository at this point in the history
fixes #737
  • Loading branch information
pmqs authored and nmoinvaz committed Oct 26, 2023
1 parent 26c484d commit 1457549
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mz_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,9 @@ int32_t mz_dir_make(const char *path) {
char *match = NULL;
char hold = 0;

if (!*path)
return MZ_OK;

current_dir = strdup(path);
if (!current_dir)
return MZ_MEM_ERROR;
Expand Down

0 comments on commit 1457549

Please sign in to comment.