mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-11 13:30:05 -05:00
coverity fixes
This commit is contained in:
parent
0f4f48d377
commit
df20aa2a1e
5 changed files with 8 additions and 3 deletions
|
|
@ -62,7 +62,7 @@ static long get_integer(const char **ptr, long min, long max)
|
|||
val = strtol(s, &p, 0);
|
||||
if (*p == '.') {
|
||||
p++;
|
||||
strtol(p, &p, 10);
|
||||
(void)strtol(p, &p, 10);
|
||||
}
|
||||
if (*p == '%') {
|
||||
val = (long)convert_prange1(strtod(s, NULL), min, max);
|
||||
|
|
@ -90,7 +90,7 @@ static long long get_integer64(const char **ptr, long long min, long long max)
|
|||
val = strtol(s, &p, 0);
|
||||
if (*p == '.') {
|
||||
p++;
|
||||
strtol(p, &p, 10);
|
||||
(void)strtol(p, &p, 10);
|
||||
}
|
||||
if (*p == '%') {
|
||||
val = (long long)convert_prange1(strtod(s, NULL), min, max);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue