[gnome-panel] run-dialog: check return value
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel] run-dialog: check return value
- Date: Thu, 3 Mar 2022 12:37:51 +0000 (UTC)
commit 665515fed95dcdf56e64f58e61e0b41a8b29815e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Mar 3 14:32:22 2022 +0200
run-dialog: check return value
Coverity CID: #1502711
gnome-panel/panel-run-dialog.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnome-panel/panel-run-dialog.c b/gnome-panel/panel-run-dialog.c
index bea153a66..f83957f5e 100644
--- a/gnome-panel/panel-run-dialog.c
+++ b/gnome-panel/panel-run-dialog.c
@@ -314,7 +314,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]