diff --git a/src/interface/interface_backend_udev.c b/src/interface/interface_backend_udev.c index cc20b98088a1a5a8117416b24795e8a13b0ff3df..3231b73bcc87267fd12c9c81afc960d71e2328a9 100644 --- a/src/interface/interface_backend_udev.c +++ b/src/interface/interface_backend_udev.c @@ -654,9 +654,8 @@ udevIfaceGetIfaceDef(struct udev *udev, char *name) ifacedef->data.bridge.stp = stp; /* Members of the bridge */ - virAsprintf(&member_path, "%s/%s", - udev_device_get_syspath(dev), "brif"); - if (!member_path) { + if (virAsprintf(&member_path, "%s/%s", + udev_device_get_syspath(dev), "brif") < 0) { virReportOOMError(); goto cleanup; }