mirror of
https://github.com/brl/mutter.git
synced 2024-11-25 01:20:42 -05:00
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:
parent
c57ae7fc9c
commit
562cf14258
@ -127,7 +127,7 @@ meta_launch_context_get_startup_notify_id (GAppLaunchContext *launch_context,
|
|||||||
MetaLaunchContext *context = META_LAUNCH_CONTEXT (launch_context);
|
MetaLaunchContext *context = META_LAUNCH_CONTEXT (launch_context);
|
||||||
MetaDisplay *display = context->display;
|
MetaDisplay *display = context->display;
|
||||||
int workspace_idx = -1;
|
int workspace_idx = -1;
|
||||||
gchar *startup_id;
|
char *startup_id = NULL;
|
||||||
|
|
||||||
if (context->workspace)
|
if (context->workspace)
|
||||||
workspace_idx = meta_workspace_index (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)
|
if (!startup_id)
|
||||||
{
|
{
|
||||||
const gchar *application_id = NULL;
|
const char *application_id = NULL;
|
||||||
MetaStartupNotification *sn;
|
MetaStartupNotification *sn;
|
||||||
MetaStartupSequence *seq;
|
MetaStartupSequence *seq;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user