aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDave Reisner <dreisner@archlinux.org>2012-12-24 11:44:53 -0500
committerDave Reisner <dreisner@archlinux.org>2012-12-24 11:44:53 -0500
commitaaa9ca9cd64b97c00d08edd3d7e3ffe5b0879a60 (patch)
treea1de1f76d4160a781b1794af4fec55ce1623afbb
parentde8f72e68ff0964ab607fdd318faafb5e23cf50d (diff)
downloadmirror-ponymix-aaa9ca9cd64b97c00d08edd3d7e3ffe5b0879a60.tar.gz
mirror-ponymix-aaa9ca9cd64b97c00d08edd3d7e3ffe5b0879a60.tar.bz2
mirror-ponymix-aaa9ca9cd64b97c00d08edd3d7e3ffe5b0879a60.zip
avoid crash on sinks without names (loopbacks?)
-rw-r--r--ponymix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ponymix.c b/ponymix.c
index 43673d2..e98ecf3 100644
--- a/ponymix.c
+++ b/ponymix.c
@@ -216,7 +216,7 @@ static void populate_levels(struct io_t *node)
io = calloc(1, sizeof(struct io_t)); \
io->idx = info->index; \
io->mute = info->mute; \
- io->name = strdup(info->name); \
+ io->name = strdup(info->name ? info->name : ""); \
io->pp_name = pp; \
memcpy(&io->volume, &info->volume, sizeof(pa_cvolume)); \
memcpy(&io->channels, &info->channel_map, sizeof(pa_channel_map)); \