1
0
Fork 0

core: Fix compiler warning

Fix compiler warning: ‘startup_id’ may be used uninitialized in
`meta_launch_context_get_startup_notify_id()`.

Also change `gchar` to plain `char` while at it.

https://gitlab.gnome.org/GNOME/mutter/merge_requests/406
This commit is contained in:
Olivier Fourdan 2019-01-23 09:29:39 +01:00
parent c57ae7fc9c
commit 562cf14258

View file

@ -127,7 +127,7 @@ meta_launch_context_get_startup_notify_id (GAppLaunchContext *launch_context,
MetaLaunchContext *context = META_LAUNCH_CONTEXT (launch_context);
MetaDisplay *display = context->display;
int workspace_idx = -1;
gchar *startup_id;
char *startup_id = NULL;
if (context->workspace)
workspace_idx = meta_workspace_index (context->workspace);
@ -148,7 +148,7 @@ meta_launch_context_get_startup_notify_id (GAppLaunchContext *launch_context,
if (!startup_id)
{
const gchar *application_id = NULL;
const char *application_id = NULL;
MetaStartupNotification *sn;
MetaStartupSequence *seq;