dbus-sysdeps-unix: fix warning with unit hostip array

This commit is contained in:
GermanAizek 2025-08-22 22:00:51 +03:00
parent 8c1e83deaa
commit 0431b47a3b
No known key found for this signature in database
GPG key ID: 1D2DC7BDC7225EF7

View file

@ -5089,7 +5089,7 @@ _dbus_append_address_from_socket (DBusSocket fd,
struct sockaddr_in ipv4;
struct sockaddr_in6 ipv6;
} socket;
char hostip[INET6_ADDRSTRLEN];
char hostip[INET6_ADDRSTRLEN] = { '\0' };
socklen_t size = sizeof (socket);
DBusString path_str;
const char *family_name = NULL;