Skip to content

Commit

Permalink
Fix missing initialization of xError in FF_Move
Browse files Browse the repository at this point in the history
The error variable could get accessed before initialization.
  • Loading branch information
togrue committed Feb 14, 2024
1 parent b1a378d commit 6244ea4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ff_file.c
Original file line number Diff line number Diff line change
Expand Up @@ -887,7 +887,7 @@ static FF_FILE * prvAllocFileHandle( FF_IOManager_t * pxIOManager,
#endif
/* *INDENT-ON* */
{
FF_Error_t xError;
FF_Error_t xError = FF_ERR_NONE;
FF_FILE * pSrcFile, * pxDestFile;
FF_DirEnt_t xMyFile;
uint8_t ucEntryBuffer[ 32 ];
Expand Down

0 comments on commit 6244ea4

Please sign in to comment.