Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
Refactoring: Remark about previous fixed bug possibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mkostoevr committed Apr 27, 2020
1 parent 8674788 commit b885ec0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fat12.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,6 +366,7 @@ static int callback(const char *name, size_t size, const uint8_t *data, void *pa
char *fileNameDelim = NULL;

// no slash = no folders to create, outputPath->data contains only file name
// yes, I know, outputPath->data always contains '/', but who knows...
if ((fileNameDelim = strrchr(outputPath->data, '/'))) {
*fileNameDelim = '\0';
mkdir_p(outputPath->data);
Expand Down

0 comments on commit b885ec0

Please sign in to comment.