Commit 93e18790 authored by Philip Withnall's avatar Philip Withnall Committed by Olivier Crête
Browse files

agent: Add a missing precondition assertion

Spotted by Tartan.
parent 54c6f0e1
......@@ -349,6 +349,7 @@ nice_interfaces_get_ip_for_interface (gchar *interface_name)
} sa;
gint sockfd;
g_return_val_if_fail (interface_name != NULL, NULL);
ifr.ifr_addr.sa_family = AF_INET;
memset (ifr.ifr_name, 0, sizeof (ifr.ifr_name));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment