interfaces: Add missing brackets
authorOlivier Crête <olivier.crete@collabora.com>
Sat, 12 Jul 2014 19:22:45 +0000 (15:22 -0400)
committerOlivier Crête <olivier.crete@collabora.com>
Sat, 12 Jul 2014 19:22:45 +0000 (15:22 -0400)
agent/interfaces.c

index 69c77c1..6023fde 100644 (file)
@@ -228,11 +228,12 @@ nice_interfaces_get_local_ips (gboolean include_loopback)
     nice_debug ("Interface:  %s", ifa->ifa_name);
     nice_debug ("IP Address: %s", addr_string);
     if ((ifa->ifa_flags & IFF_LOOPBACK) == IFF_LOOPBACK) {
-      if (include_loopback)
+      if (include_loopback) {
         loopbacks = g_list_append (loopbacks, addr_string);
-      else
+      } else {
         nice_debug ("Ignoring loopback interface");
         g_free (addr_string);
+      }
     } else {
       if (nice_interfaces_is_private_ip (ifa->ifa_addr))
         ips = g_list_append (ips, addr_string);