diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2014-01-26 22:57:47 +0100 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2015-03-03 12:06:57 +0100 |
commit | ee9ee5f9610a0069f1a510e3513d69ca1e201f7f (patch) | |
tree | 987a24a492cbd4cae668ab688138b3b908441e9e | |
parent | 119446e5093daa48c863dcec06e7bee543e38d2b (diff) |
Add more preconditions to gvir_designer_domain_add_interface_network()
-rw-r--r-- | libvirt-designer/libvirt-designer-domain.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; |