[vala/staging] avahi-client: Fix "use of possibly unassigned parameter" warnings
- From: Rico Tzschichholz <ricotz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vala/staging] avahi-client: Fix "use of possibly unassigned parameter" warnings
- Date: Sat, 5 Oct 2019 08:39:22 +0000 (UTC)
commit 1265b39e6c07f2fd561ed183538245a0a368db70
Author: Rico Tzschichholz <ricotz ubuntu com>
Date: Sat Oct 5 10:34:52 2019 +0200
avahi-client: Fix "use of possibly unassigned parameter" warnings
vapi/avahi-client.vapi | 4 ++++
1 file changed, 4 insertions(+)
---
diff --git a/vapi/avahi-client.vapi b/vapi/avahi-client.vapi
index 97bdbecdd..2e3b0ad1d 100644
--- a/vapi/avahi-client.vapi
+++ b/vapi/avahi-client.vapi
@@ -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;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]