stat: Remove several superfluous if-tests
authorBart Van Assche <bvanassche@acm.org>
Sat, 18 Jan 2020 04:41:43 +0000 (20:41 -0800)
committerBart Van Assche <bvanassche@acm.org>
Sat, 18 Jan 2020 05:17:29 +0000 (21:17 -0800)
commit283feb79db4b21f8b447e62a8635dc5124904151
tree7299f936a398828bf78b426d5c59b4ecb77debd9
parentc0a6be6c1ee7c4989eb0b7a2b3362eaa8e6d1b27
stat: Remove several superfluous if-tests

Passing NULL to free() is allowed. From https://pubs.opengroup.org/onlinepubs/9699919799/functions/free.html#:

If ptr is a null pointer, no action shall occur.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
stat.c