mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +01:00
gio-launch-desktop: Fix a compiler warning
Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
parent
6620d28333
commit
e4e21f20e2
@ -44,7 +44,7 @@ main (int argc, char *argv[])
|
|||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
r = snprintf (buf, sizeof (buf), "GIO_LAUNCHED_DESKTOP_FILE_PID=%ld", (long) pid);
|
r = snprintf (buf, sizeof (buf), "GIO_LAUNCHED_DESKTOP_FILE_PID=%ld", (long) pid);
|
||||||
if (r >= sizeof (buf))
|
if (r < 0 || (size_t) r >= sizeof (buf))
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
putenv (buf);
|
putenv (buf);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user