[gnome-panel] fish: check return value
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] fish: check return value
- Date: Thu, 3 Mar 2022 12:37:51 +0000 (UTC)
commit 008ebb436429e2b19f5bc6193b146ce9b329cdf7
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Mar 3 14:34:44 2022 +0200
fish: check return value
Coverity CID: #1502711
modules/fish/fish-applet.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/modules/fish/fish-applet.c b/modules/fish/fish-applet.c
index 0db45a8f9..54e061b24 100644
--- a/modules/fish/fish-applet.c
+++ b/modules/fish/fish-applet.c
@@ -531,7 +531,8 @@ set_environment (gpointer user_data)
display = gdk_display_get_default ();
- g_setenv ("DISPLAY", gdk_display_get_name (display), TRUE);
+ if (!g_setenv ("DISPLAY", gdk_display_get_name (display), TRUE))
+ g_warning ("Failed to set DISPLAY environment variable");
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]