aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)); \