[gnome-applets] mini-commander: check return value
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-applets] mini-commander: check return value
- Date: Thu, 3 Mar 2022 12:46:07 +0000 (UTC)
commit 2b677ab2f311adcd82473b0c0750d371f1288254
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Thu Mar 3 14:44:55 2022 +0200
mini-commander: check return value
Coverity CID: #1502711
gnome-applets/mini-commander/exec.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/gnome-applets/mini-commander/exec.c b/gnome-applets/mini-commander/exec.c
index 4647647d0..f40435517 100644
--- a/gnome-applets/mini-commander/exec.c
+++ b/gnome-applets/mini-commander/exec.c
@@ -39,7 +39,8 @@ static void beep (void);
static void
set_environment (gpointer display)
{
- g_setenv ("DISPLAY", display, TRUE);
+ if (!g_setenv ("DISPLAY", display, TRUE))
+ g_warning ("Failed to set DISPLAY environment variable");
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]