[pcre-dev] [Bug 2285] Document tolerance for null pointers i…

Startseite
Nachricht löschen
Autor: admin
Datum:  
To: pcre-dev
Betreff: [pcre-dev] [Bug 2285] Document tolerance for null pointers in specific function parameters
https://bugs.exim.org/show_bug.cgi?id=2285

--- Comment #4 from Philip Hazel <ph10@???> ---
(In reply to Markus Elfring from comment #2)
> (In reply to Philip Hazel from comment #1)
> > All the xxx_free() functions do nothing for NULL arguments.
>
> * Is an immediate return also a noteworthy action? ;-)
>
> * Since which version of the application programming interface was this
> detail valid?


I cannot remember, but probably since the very beginning. The C standard
"free()" function has this behaviour, and I was probably copying it.

> * Is there a need to mark such resource release functions in a special way
> so they could be grouped?


Sorry, I don't really understand what are suggesting here.

--
You are receiving this mail because:
You are on the CC list for the bug.