mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 15:36:17 +01:00
Fix signedness warning in gio/gdesktopappinfo.c:g_desktop_app_info_launch_uris_with_spawn()
gio/gdesktopappinfo.c: In function ‘g_desktop_app_info_launch_uris_with_spawn’: gio/gdesktopappinfo.c:2804:21: error: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ 2804 | for (i = 0; i < G_N_ELEMENTS (wrapper_argv); i++) | ^
This commit is contained in:
parent
04a05ff016
commit
08f73f8187
@ -2771,6 +2771,7 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
|
||||
char *sn_id = NULL;
|
||||
char **wrapped_argv;
|
||||
int i;
|
||||
gsize j;
|
||||
const gchar * const wrapper_argv[] =
|
||||
{
|
||||
"/bin/sh",
|
||||
@ -2834,8 +2835,8 @@ g_desktop_app_info_launch_uris_with_spawn (GDesktopAppInfo *info,
|
||||
* resurrected). */
|
||||
wrapped_argv = g_new (char *, argc + G_N_ELEMENTS (wrapper_argv) + 1);
|
||||
|
||||
for (i = 0; i < G_N_ELEMENTS (wrapper_argv); i++)
|
||||
wrapped_argv[i] = g_strdup (wrapper_argv[i]);
|
||||
for (j = 0; j < G_N_ELEMENTS (wrapper_argv); j++)
|
||||
wrapped_argv[j] = g_strdup (wrapper_argv[j]);
|
||||
for (i = 0; i < argc; i++)
|
||||
wrapped_argv[i + G_N_ELEMENTS (wrapper_argv)] = g_steal_pointer (&argv[i]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user