projects
/
profile
/
ivi
/
pulseaudio-module-murphy-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ffb5a03
)
fix assert
28/8328/1
author
Jaska Uimonen
<jaska.uimonen@helsinki.fi>
Fri, 26 Apr 2013 08:31:07 +0000
(11:31 +0300)
committer
Jaska Uimonen
<jaska.uimonen@helsinki.fi>
Mon, 12 Aug 2013 11:12:55 +0000
(14:12 +0300)
murphy/router.c
patch
|
blob
|
history
diff --git
a/murphy/router.c
b/murphy/router.c
index
a4ea986
..
6d1aa1f
100644
(file)
--- a/
murphy/router.c
+++ b/
murphy/router.c
@@
-698,6
+698,8
@@
static int rtgroup_print(mir_rtgroup *rtg, char *buf, int len)
e = (p = buf) + len;
+ *buf = 0;
+
MIR_DLIST_FOR_EACH_BACKWARD(mir_rtentry, link, rte, &rtg->entries) {
node = rte->node;
if (p >= e)
@@
-726,7
+728,9
@@
static void rtgroup_update_module_property(struct userdata *u,
mir_direction_str(type), rtg->name);
ret = rtgroup_print(rtg, value, sizeof(value));
- pa_assert(ret != 0);
+ if (!ret)
+ value[1] = 0;
+
pa_proplist_sets(module->proplist, key, value+1); /* skip ' '@beginning */
}