diff options
author | rbuj <[email protected]> | 2020-12-20 22:27:41 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2021-01-07 18:15:20 +0100 |
commit | dfcbc043483a1f94e5da312629351e52d3d5b3cd (patch) | |
tree | c8544df11440f4e48bda5e3039a46ed052238262 /capplet | |
parent | 6398deed1db939a3bd5ae654603b5176925864af (diff) | |
download | mate-session-manager-dfcbc043483a1f94e5da312629351e52d3d5b3cd.tar.bz2 mate-session-manager-dfcbc043483a1f94e5da312629351e52d3d5b3cd.tar.xz |
Remove warning -Wshadow
Diffstat (limited to 'capplet')
-rw-r--r-- | capplet/gsp-app-manager.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/capplet/gsp-app-manager.c b/capplet/gsp-app-manager.c index 7e245db..5c30dfd 100644 --- a/capplet/gsp-app-manager.c +++ b/capplet/gsp-app-manager.c @@ -28,8 +28,6 @@ #include "gsp-app-manager.h" -static GspAppManager *manager = NULL; - typedef struct { char *dir; int index; @@ -599,6 +597,8 @@ gsp_app_manager_find_app_with_basename (GspAppManager *manager, GspAppManager * gsp_app_manager_get (void) { + static GspAppManager *manager = NULL; + if (manager == NULL) { manager = g_object_new (GSP_TYPE_APP_MANAGER, NULL); return manager; |