Skip to content
Snippets Groups Projects
Commit 4ea9fbcd authored by Nick Mathewson's avatar Nick Mathewson :game_die:
Browse files

Clean up malloc issues in sandbox.c

tor_malloc returns void *; in C, it is not necessary to cast a
void* to another pointer type before assigning it.

tor_malloc fails with an error rather than returning NULL; it's not
necessary to check its output. (In one case, doing so annoyed Coverity.)
parent 15b9a1ff
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment