Skip to content
Snippets Groups Projects
Commit ea1dd652 authored by Petter Reinholdtsen's avatar Petter Reinholdtsen
Browse files

Dropped not allocate memory for comments when there are none.

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.

Thanks to Eric Lasota for noticing.

Fixes #2304
parent 10b3ce94
No related branches found
No related tags found
No related merge requests found
Pipeline #6292 passed
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment