Re: [hackers] [sent] [PATCH 1/3] sent.c: Drop unnecessary NULL checks

From: Greg Minshall <minshall_AT_acm.org>
Date: Sun, 26 Jun 2022 21:53:49 +0300

Tom,

> Since no operation is performed when free(3) is used on NULL, remove
> the checks.

for what it's worth, i'd probably code with the checks, so as to avoid
future code editors (including myself) doing a double-take, thinking,
"hmm, did the author consider that case?". (though, of course, you did
that same -- if opposite -- double-take when you saw that code.)

cheers, Greg
Received on Sun Jun 26 2022 - 20:53:49 CEST

This archive was generated by hypermail 2.3.0 : Sun Jun 26 2022 - 22:12:29 CEST