Skip to content

Commit

Permalink
Add another return false
Browse files Browse the repository at this point in the history
This return of false will be hit if all three calls in the nested if statements
fails. In the case of chmod, stat and fopen failing.
  • Loading branch information
Todd Martin authored and Todd Martin committed Oct 8, 2021
1 parent d7cbf36 commit 6a63daf
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ut_assert/src/uttools.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ bool UtMem2BinFile(const void *Memory, const char *Filename, uint32 Length)
UtAssert_True(false, "UtMem2BinFile: Error Opening File");
return (false);
}

return (false);
}

bool UtBinFile2Mem(void *Memory, const char *Filename, uint32 Length)
Expand Down

0 comments on commit 6a63daf

Please sign in to comment.