From: "VAUTRIN Emmanuel (Canal Plus Prestataire)" <Emmanuel.VAUTRIN@cpexterne.org> To: "connman@lists.linux.dev" <connman@lists.linux.dev> Subject: [PATCH] build: Fix compiler maybe-uninitialized warnings Date: Mon, 13 Sep 2021 07:17:13 +0000 [thread overview] Message-ID: <MRZP264MB15449CB6E42AF281B16F54FE93D99@MRZP264MB1544.FRAP264.PROD.OUTLOOK.COM> (raw) --- src/config.c | 6 ++---- src/dnsproxy.c | 2 +- tools/ip6tables-test.c | 2 +- tools/iptables-test.c | 2 +- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/config.c b/src/config.c index 62023b1072da..33fdc7375c15 100644 --- a/src/config.c +++ b/src/config.c @@ -1106,8 +1106,7 @@ static char *config_pem_fsid(const char *pem_file) static void provision_service_wifi(struct connman_config_service *config, struct connman_service *service, - struct connman_network *network, - const void *ssid, unsigned int ssid_len) + struct connman_network *network) { if (config->eap) __connman_service_set_string(service, "EAP", config->eap); @@ -1418,8 +1417,7 @@ static int try_provision_service(struct connman_config_service *config, config->timeservers); if (type == CONNMAN_SERVICE_TYPE_WIFI) { - provision_service_wifi(config, service, network, - ssid, ssid_len); + provision_service_wifi(config, service, network); } __connman_service_mark_dirty(); diff --git a/src/dnsproxy.c b/src/dnsproxy.c index 4b65b3790bb9..fbbee0413f8f 100644 --- a/src/dnsproxy.c +++ b/src/dnsproxy.c @@ -2707,7 +2707,7 @@ static void update_domain(int index, const char *domain, bool append) for (list = server_list; list; list = list->next) { struct server_data *data = list->data; GList *dom_list; - char *dom; + char *dom = NULL; bool dom_found = false; if (data->index < 0) diff --git a/tools/ip6tables-test.c b/tools/ip6tables-test.c index 41e842dd64af..a52f4af04edf 100644 --- a/tools/ip6tables-test.c +++ b/tools/ip6tables-test.c @@ -45,7 +45,7 @@ int main(int argc, char *argv[]) { enum iptables_command cmd = IPTABLES_COMMAND_UNKNOWN; char *table = NULL, *chain = NULL, *rule = NULL, *tmp; - int err, c, i; + int err = -EINVAL, c, i; opterr = 0; diff --git a/tools/iptables-test.c b/tools/iptables-test.c index e9b7cb224d7a..f9d091eb9490 100644 --- a/tools/iptables-test.c +++ b/tools/iptables-test.c @@ -44,7 +44,7 @@ int main(int argc, char *argv[]) { enum iptables_command cmd = IPTABLES_COMMAND_UNKNOWN; char *table = NULL, *chain = NULL, *rule = NULL, *tmp; - int err, c, i; + int err = -EINVAL, c, i; opterr = 0; -- 2.25.1
next reply other threads:[~2021-09-13 7:17 UTC|newest] Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-09-13 7:17 VAUTRIN Emmanuel (Canal Plus Prestataire) [this message] 2021-09-13 7:27 ` Daniel Wagner 2021-09-13 7:45 ` VAUTRIN Emmanuel (Canal Plus Prestataire) 2021-09-20 7:22 ` Daniel Wagner 2021-09-20 8:15 ` VAUTRIN Emmanuel (Canal Plus Prestataire) 2021-10-18 7:26 ` Daniel Wagner
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=MRZP264MB15449CB6E42AF281B16F54FE93D99@MRZP264MB1544.FRAP264.PROD.OUTLOOK.COM \ --to=emmanuel.vautrin@cpexterne.org \ --cc=connman@lists.linux.dev \ --subject='Re: [PATCH] build: Fix compiler maybe-uninitialized warnings' \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.