mirror of
https://github.com/flatpak/flatpak.git
synced 2026-10-03 19:12:05 -04:00
common/utils: Fix is_number("") to return FALSE
Previously, it was possible to enter ‘ ’ (a space) at a number prompt, and it would be stripped, passed to is_number() (which would erroneously return TRUE), then passed to strtol() and the return value used unconditionally. Fix that by fixing is_number() to return FALSE for the empty string. Signed-off-by: Philip Withnall <withnall@endlessm.com>
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f