mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Add missing lock in msg_tag() call
This commit is contained in:
parent
69c80d0460
commit
258ab45eef
1 changed files with 4 additions and 0 deletions
|
|
@ -102,11 +102,15 @@ void msg_tag(const char* format, ...)
|
|||
{
|
||||
va_list ap;
|
||||
|
||||
pthread_mutex_lock(&msg_lock);
|
||||
|
||||
if (stdlog) {
|
||||
va_start(ap, format);
|
||||
vfprintf(stdlog, format, ap);
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
pthread_mutex_unlock(&msg_lock);
|
||||
}
|
||||
|
||||
void msg_status(const char* format, ...)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue