Skip to content

Commit 8769481

Browse files
committed
Coverity CID 468118
1 parent cb90458 commit 8769481

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

sesman/sesexec_control.c

+5-1
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,11 @@ sesexec_start(struct pre_session_item *psi)
165165
* in the environment */
166166
char buff[64];
167167
g_snprintf(buff, sizeof(buff), "%d", sck[1]);
168-
g_setenv("EICP_FD", buff, 1);
168+
if (g_setenv("EICP_FD", buff, 1) < 0)
169+
{
170+
LOG(LOG_LEVEL_ERROR, "Can't set EICP_FD [%s]",
171+
g_get_strerror());
172+
}
169173

170174
/* [Development] Log all file descriptors not marked cloexec
171175
* other than stdin, stdout, stderr, and the EICP fd in sck[1].

0 commit comments

Comments
 (0)