diff options
Diffstat (limited to 'avahi-compat-libdns_sd')
-rw-r--r-- | avahi-compat-libdns_sd/txt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/avahi-compat-libdns_sd/txt.c b/avahi-compat-libdns_sd/txt.c index c85837a..2b539e6 100644 --- a/avahi-compat-libdns_sd/txt.c +++ b/avahi-compat-libdns_sd/txt.c @@ -60,7 +60,7 @@ void DNSSD_API TXTRecordCreate( if ((t = avahi_new(TXTRecordInternal, 1))) { t->buffer = buffer; - t->max_size = length; + t->max_size = buffer ? length : (size_t)0; t->size = 0; t->malloc_buffer = NULL; } |