Dropped to allocate memory for comments when there are none.
- Mar 17, 2025
-
-
Petter Reinholdtsen authored
This avoid calling malloc(0) expecting a non-NULL pointer returned, and make the code in oc_comment_unpack() not depend on non POSIX specified behaviour. Ensured comment_lengths and user_comments are NULL if there are no comments. Thanks to Eric Lasota for noticing. Fixes #2304
-