]> git.alsa-project.org Git - alsa-utils.git/commit
alsaucm: Fix ending with quotes commands
authorCheng Yueh <cyueh@chromium.org>
Thu, 9 Jul 2020 06:24:12 +0000 (14:24 +0800)
committerJaroslav Kysela <perex@perex.cz>
Mon, 27 Jul 2020 09:56:47 +0000 (11:56 +0200)
commit15539cd0e660e90635c90fc7862534c972c4b0c8
tree020422ea3eb7b549c6928dd12c802b71101963f7
parent7fbd2311e231b2db1073b44b8080bd4df7ed3d09
alsaucm: Fix ending with quotes commands

If we use 'alsaucm -n -b -' with 'get "CapturePCM/Internal Mic"' then
the alsaucm will report error and stop immediately. The reason is that
the parse_line in usecase.c appends an empty argument if a command ends
with quotes.

This change adds a patch to fix the parse_line function in usecase.c.

Signed-off-by: Cheng Yueh <cyueh@chromium.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsaucm/usecase.c