[pulseaudio-commits] [SCM] PulseAudio Sound Server branch, master, updated. v0.9.16-test6-17-g35fcb27
Lennart Poettering
gitmailer-noreply at 0pointer.de
Wed Aug 26 20:34:05 PDT 2009
This is an automated email from the git hooks/post-receive script. It was
generated because of a push to the "PulseAudio Sound Server" repository.
The master branch has been updated
from 5df842db648d876192569e3aa6e0beace1a7ac5c (commit)
- Log -----------------------------------------------------------------
35fcb27 proplist: allow setting of zero-length data properties
-----------------------------------------------------------------------
Summary of changes:
src/pulse/proplist.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
-----------------------------------------------------------------------
commit 35fcb27a81b35ca0ef2b01f19c140271970d87fe
Author: Lennart Poettering <lennart at poettering.net>
Date: Thu Aug 27 05:33:45 2009 +0200
proplist: allow setting of zero-length data properties
diff --git a/src/pulse/proplist.c b/src/pulse/proplist.c
index c904f53..048b241 100644
--- a/src/pulse/proplist.c
+++ b/src/pulse/proplist.c
@@ -251,7 +251,7 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
pa_assert(p);
pa_assert(key);
- pa_assert(data);
+ pa_assert(data || nbytes == 0);
if (!property_name_valid(key))
return -1;
@@ -264,7 +264,8 @@ int pa_proplist_set(pa_proplist *p, const char *key, const void *data, size_t nb
pa_xfree(prop->value);
prop->value = pa_xmalloc(nbytes+1);
- memcpy(prop->value, data, nbytes);
+ if (nbytes > 0)
+ memcpy(prop->value, data, nbytes);
((char*) prop->value)[nbytes] = 0;
prop->nbytes = nbytes;
--
hooks/post-receive
PulseAudio Sound Server
More information about the pulseaudio-commits
mailing list