mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-11-08 20:35:42 +01:00
alsactl: coverity - missing_va_end – va_end was not called for "ap"
This commit is contained in:
parent
17d4a5dd35
commit
89a4f490bd
1 changed files with 2 additions and 2 deletions
|
@ -157,8 +157,8 @@ void cerror_(const char *fcn, long line, int cond, const char *fmt, ...)
|
|||
fprintf(stderr, "%s: %s:%ld: ", command, fcn, line);
|
||||
vfprintf(stderr, fmt, ap);
|
||||
putc('\n', stderr);
|
||||
va_end(ap);
|
||||
}
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
void dbg_(const char *fcn, long line, const char *fmt, ...)
|
||||
|
@ -174,6 +174,6 @@ void dbg_(const char *fcn, long line, const char *fmt, ...)
|
|||
fprintf(stderr, "%s: %s:%ld: ", command, fcn, line);
|
||||
vfprintf(stderr, fmt, ap);
|
||||
putc('\n', stderr);
|
||||
va_end(ap);
|
||||
}
|
||||
va_end(ap);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue