From: Jaroslav Kysela Date: Sun, 27 Dec 2020 12:17:26 +0000 (+0100) Subject: conf: fix get_hexachar() return value X-Git-Tag: v1.2.5~141 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=9ebd29d2d31df0f8967f3e60cf24bb63c95d4984;p=alsa-lib.git conf: fix get_hexachar() return value Reported-by: Alex Henrie Signed-off-by: Jaroslav Kysela --- diff --git a/src/conf.c b/src/conf.c index 44d1bfde..6cfe65bf 100644 --- a/src/conf.c +++ b/src/conf.c @@ -887,7 +887,7 @@ static inline int get_hexachar(input_t *input) if (c >= '0' && c <= '9') num |= (c - '0') << 0; else if (c >= 'a' && c <= 'f') num |= (c - 'a') << 0; else if (c >= 'A' && c <= 'F') num |= (c - 'A') << 0; - return c; + return num; } static int get_quotedchar(input_t *input)