Browse Source

Merge pull request #13 from ventosus/patch-metadata-uuid-comparison

Add  memset to clear buffer to unparse uuid into.
tags/0.125.0rc1
pauldavisthefirst 11 years ago
parent
commit
268a22822b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      libjack/metadata.c

+ 2
- 0
libjack/metadata.c View File

@@ -302,6 +302,7 @@ jack_get_properties (jack_uuid_t subject,
desc->properties = NULL;
desc->property_cnt = 0;

memset(ustr, 0, JACK_UUID_STRING_SIZE);
jack_uuid_unparse (subject, ustr);

if (jack_property_init (NULL)) {
@@ -595,6 +596,7 @@ jack_remove_properties (jack_client_t* client, jack_uuid_t subject)
int retval = 0;
uint32_t cnt = 0;

memset(ustr, 0, JACK_UUID_STRING_SIZE);
jack_uuid_unparse (subject, ustr);

if (jack_property_init (NULL)) {


Loading…
Cancel
Save