diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/first_network_device.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |