diff options
author | Dave Reisner <dreisner@archlinux.org> | 2012-12-24 11:44:53 -0500 |
---|---|---|
committer | Dave Reisner <dreisner@archlinux.org> | 2012-12-24 11:44:53 -0500 |
commit | aaa9ca9cd64b97c00d08edd3d7e3ffe5b0879a60 (patch) | |
tree | a1de1f76d4160a781b1794af4fec55ce1623afbb | |
parent | de8f72e68ff0964ab607fdd318faafb5e23cf50d (diff) | |
download | mirror-ponymix-aaa9ca9cd64b97c00d08edd3d7e3ffe5b0879a60.tar.gz mirror-ponymix-aaa9ca9cd64b97c00d08edd3d7e3ffe5b0879a60.tar.bz2 mirror-ponymix-aaa9ca9cd64b97c00d08edd3d7e3ffe5b0879a60.zip |
avoid crash on sinks without names (loopbacks?)
-rw-r--r-- | ponymix.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)); \ |