mirror of
https://github.com/brl/mutter.git
synced 2024-12-25 20:32:16 +00: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);
|
||||
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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user