pactl: Fix some corner cases when setting sink formats
authorArun Raghavan <arun@arunraghavan.net>
Sat, 12 Jan 2019 04:17:12 +0000 (09:47 +0530)
committerArun Raghavan <arun@arunraghavan.net>
Wed, 16 Jan 2019 04:09:24 +0000 (09:39 +0530)
commit9e0aa31f0a0d0c29ed0108dc1d6fa9e4d557b90f
tree20a9e5b7c8b107a97632f9c81e9d0ab7dd5ca1ce
parent24c389c8aa3b0291837e04ad60a39882e6eae999
pactl: Fix some corner cases when setting sink formats

Mostly deals with failure more gracefully, and NULL-initialises the
format array for safety.
src/utils/pactl.c