mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Handle failure of vfprintf
This commit is contained in:
parent
8749d0dfe3
commit
54d944c496
1 changed files with 2 additions and 0 deletions
|
|
@ -277,6 +277,8 @@ static void vmsg(FILE* out, const char* format, va_list ap)
|
|||
|
||||
if (dup[0]) {
|
||||
written = vfprintf(out, dup, ap);
|
||||
if (written < 0) /* ignore errors */
|
||||
written = 0;
|
||||
}
|
||||
|
||||
switch (control) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue