mirror of
https://github.com/transmission/transmission
synced 2025-02-12 09:25:03 +00:00
in debugf(), don't call fflush() on a null pointer. Xref: https://trac.transmissionbt.com/ticket/4531#comment:73
This commit is contained in:
parent
fa23e1e60a
commit
13a09c5bf6
1 changed files with 3 additions and 2 deletions
5
third-party/dht/dht.c
vendored
5
third-party/dht/dht.c
vendored
|
@ -326,11 +326,12 @@ debugf(const char *format, ...)
|
|||
{
|
||||
va_list args;
|
||||
va_start(args, format);
|
||||
if(dht_debug)
|
||||
if(dht_debug) {
|
||||
vfprintf(dht_debug, format, args);
|
||||
va_end(args);
|
||||
fflush(dht_debug);
|
||||
}
|
||||
va_end(args);
|
||||
}
|
||||
|
||||
static void
|
||||
debug_printable(const unsigned char *buf, int buflen)
|
||||
|
|
Loading…
Reference in a new issue