[gnome-software/gnome-40: 1/2] trivial: Avoid use of uninitialized variables
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-40: 1/2] trivial: Avoid use of uninitialized variables
- Date: Wed, 9 Jun 2021 12:34:15 +0000 (UTC)
commit f9402fbe000ca0398b75e410d4fb54bb40999ddd
Author: Milan Crha <mcrha redhat com>
Date: Tue Jun 8 19:42:51 2021 +0200
trivial: Avoid use of uninitialized variables
Reported by gcc 11.1.1 20210428 when configured with CFLAGS='-g -O2 -Wall'.
(Backporting one chunk out of two to gnome-40; the other is not
relevant.)
plugins/fwupd/gs-plugin-fwupd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/fwupd/gs-plugin-fwupd.c b/plugins/fwupd/gs-plugin-fwupd.c
index be6a93e8b..ef1bde995 100644
--- a/plugins/fwupd/gs-plugin-fwupd.c
+++ b/plugins/fwupd/gs-plugin-fwupd.c
@@ -378,7 +378,7 @@ gs_plugin_fwupd_new_app (GsPlugin *plugin, FwupdDevice *dev, GError **error)
#if FWUPD_CHECK_VERSION(1,5,6)
GPtrArray *locations = fwupd_release_get_locations (rel);
#endif
- const gchar *update_uri;
+ const gchar *update_uri = NULL;
g_autofree gchar *basename = NULL;
g_autofree gchar *filename_cache = NULL;
g_autoptr(GFile) file = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]