Skip to content

Commit

Permalink
Error handling for unable to limit permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
martintc committed Oct 11, 2021
1 parent 249c3f9 commit 220132d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions ut_assert/src/uttools.c
Original file line number Diff line number Diff line change
Expand Up @@ -135,9 +135,13 @@ bool UtMem2HexFile(const void *Memory, const char *Filename, uint32 Length)
}
fprintf(fp, "\n");
}
fclose(fp);
return (true);
} else {
printf("Unable to limit permissions on file\n");
fclose(fp);
return (false);
}
fclose(fp);
return (true);
}
else
{
Expand Down

0 comments on commit 220132d

Please sign in to comment.