Skip to content

Commit

Permalink
SDL_CreateDirectory(): Clear error message when it succeeds after fir…
Browse files Browse the repository at this point in the history
…st failing
  • Loading branch information
Sackzement committed Oct 27, 2024
1 parent 8468c37 commit 4405355
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/filesystem/SDL_filesystem.c
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ bool SDL_CreateDirectory(const char *path)
}

SDL_free(parents);

if (retval) {
SDL_ClearError();
}
}
return retval;
}
Expand Down

0 comments on commit 4405355

Please sign in to comment.