]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: avoid endless loop in sound play command
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 30 Dec 2022 23:49:10 +0000 (00:49 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Wed, 4 Jan 2023 12:17:42 +0000 (13:17 +0100)
commitbfc8f778714616fa4cd6b8f9f4f62d070d7bc572
tree7dda1011fe4e648d4353ead50321dbf41ac11340
parentb215968ed645b5765dcd10594818bda6fdd16127
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>
cmd/sound.c