]> git.ipfire.org Git - thirdparty/vala.git/commitdiff
avahi-client: Fix "use of possibly unassigned parameter" warnings
authorRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Oct 2019 08:34:52 +0000 (10:34 +0200)
committerRico Tzschichholz <ricotz@ubuntu.com>
Sat, 5 Oct 2019 11:45:55 +0000 (13:45 +0200)
vapi/avahi-client.vapi

index 97bdbecdde159ed5658980b53f05828ff6c0f3f1..2e3b0ad1ddb6df47c79b0b7e5c8656b31905bcb5 100644 (file)
@@ -177,6 +177,10 @@ namespace Avahi {
                                name = (string) name_data;
                                type = (string) type_data;
                                domain = (string) domain_data;
+                       } else {
+                               name = null;
+                               type = null;
+                               domain = null;
                        }
 
                        return errno;