diff --git a/src/first_network_device.c b/src/first_network_device.c index 656e457..3f34cf2 100644 --- a/src/first_network_device.c +++ b/src/first_network_device.c @@ -57,8 +57,9 @@ static bool is_virtual(const char *ifname) { snprintf(path, sizeof(path), "/sys/class/net/%s", ifname); if ((target = realpath(path, NULL))) { - if (BEGINS_WITH(target, "/sys/devices/virtual/")) + if (BEGINS_WITH(target, "/sys/devices/virtual/")) { is_virtual = true; + } } free(target);