diff options
author | Carlos Garnacho <carlosg@gnome.org> | 2021-03-20 10:58:49 +0100 |
---|---|---|
committer | Carlos Garnacho <carlosg@gnome.org> | 2021-03-26 12:20:58 +0100 |
commit | aa3caa512bd99bac485d110b4a06cc3d9dbecf83 (patch) | |
tree | 5d1c308c058a1803ae1f914dd53de2cd37204d03 | |
parent | ee6127fd235218a9fdad2d6123c15809ca4d56fc (diff) | |
download | tracker-aa3caa512bd99bac485d110b4a06cc3d9dbecf83.tar.gz |
portal: Fix GStrv declaration
We don't make it look like we are declaring an array, so the compiler
thinks the { NULL } is actually the declaration of the GStrv itself.
We do want a pointer to an empty GStrv instead, so make it clear that
this is a string array.
CID: #1501141
-rw-r--r-- | src/portal/tracker-portal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/portal/tracker-portal.c b/src/portal/tracker-portal.c index 4faeaae0b..3b041603f 100644 --- a/src/portal/tracker-portal.c +++ b/src/portal/tracker-portal.c @@ -229,7 +229,7 @@ load_client_configuration (TrackerPortal *portal, } if (!flatpak_info) { - GStrv default_graphs = { NULL }; + gchar *default_graphs[] = { NULL }; if (inner_error) { g_warning ("Error reading .flatpak-info."); |