cli: Fix crash when using .include with an empty directory
authorPatrick Gaskin <patrick@pgaskin.net>
Sun, 3 Jan 2021 08:29:35 +0000 (03:29 -0500)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Fri, 8 Jan 2021 00:03:52 +0000 (00:03 +0000)
commitb1bdd27a6c7828ed4c055986b89fb17e90e02c2a
treed9ee26ba935cc0f683e789680e856064ecfe3bd4
parentc2ae56a73cac813c95973e534a011d38a6a9e891
cli: Fix crash when using .include with an empty directory

This would previously fail the size > 0 assertion in pa_xmalloc.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/454>
src/pulsecore/cli-command.c