Closed ventosus closed 8 years ago
JackPropertyChangeCallback returns a carbage key when removing all keys of a given uuid, e.g. triggered by 'jack_remove_properties(...)'.
JackPropertyChangeCallback should return a (NULL) key when removing all keys of a given uuid.
'malloc' is called with key_size==0, which MAY NOT return a (NULL) pointer.
Do not call 'malloc' for key_size==0.
Issue
JackPropertyChangeCallback returns a carbage key when removing all keys of a given uuid, e.g. triggered by 'jack_remove_properties(...)'.
Expected
JackPropertyChangeCallback should return a (NULL) key when removing all keys of a given uuid.
Culprit
'malloc' is called with key_size==0, which MAY NOT return a (NULL) pointer.
Fix
Do not call 'malloc' for key_size==0.