[libvirt-designer 5/7] Add more preconditions to gvir_designer_domain_add_interface_network()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



---
 libvirt-designer/libvirt-designer-domain.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libvirt-designer/libvirt-designer-domain.c b/libvirt-designer/libvirt-designer-domain.c
index 7387ab1..0321180 100644
--- a/libvirt-designer/libvirt-designer-domain.c
+++ b/libvirt-designer/libvirt-designer-domain.c
@@ -1916,6 +1916,8 @@ gvir_designer_domain_add_interface_network(GVirDesignerDomain *design,
                                            GError **error)
 {
     g_return_val_if_fail(GVIR_DESIGNER_IS_DOMAIN(design), NULL);
+    g_return_val_if_fail(network != NULL, NULL);
+    g_return_val_if_fail(!error_is_set(error), NULL);
 
     GVirConfigDomainInterface *ret = NULL;
 
-- 
2.1.0

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list




[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]