]> git.alsa-project.org Git - alsa-lib.git/commitdiff
conf: fix get_hexachar() return value
authorJaroslav Kysela <perex@perex.cz>
Sun, 27 Dec 2020 12:17:26 +0000 (13:17 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 27 Dec 2020 12:17:48 +0000 (13:17 +0100)
Reported-by: Alex Henrie <alexhenrie24@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
src/conf.c

index 44d1bfde66ad3f9d45f513aca61c956caf8582c0..6cfe65bfe8cd3f9be2667e1f6f90fdef9b979622 100644 (file)
@@ -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)