[tracker/wip/carlosg/coverity-warnings: 11/27] portal: Fix GStrv declaration
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/wip/carlosg/coverity-warnings: 11/27] portal: Fix GStrv declaration
- Date: Fri, 26 Mar 2021 11:22:24 +0000 (UTC)
commit aa3caa512bd99bac485d110b4a06cc3d9dbecf83
Author: Carlos Garnacho <carlosg gnome org>
Date: Sat Mar 20 10:58:49 2021 +0100
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
src/portal/tracker-portal.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
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.");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]