commit | 75272c009a44688ef9f4e13aa0211a2374be7b2d | [log] [tgz] |
---|---|---|
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Sat Dec 31 00:49:10 2022 +0100 |
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | Wed Jan 04 13:17:42 2023 +0100 |
tree | 7dda1011fe4e648d4353ead50321dbf41ac11340 | |
parent | 65add0fe88d3540ef05f1c920d0f33f9df4508c7 [diff] |
cmd: avoid endless loop in sound play command A parameter starting with a hyphen leads to an endless loop in the sound play command. Leave it to dectoul() to handle the hyphen. It will return 0 for a negative number. Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com> Reviewed-by: Simon Glass <sjg@chromium.org>