From d29a7fd598af9ad840cf43cf9dca9ab3f756942c Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 23 Aug 2014 23:49:39 +0200 Subject: setenv can fail MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mds.c') diff --git a/src/mds.c b/src/mds.c index f47e758..36d3465 100644 --- a/src/mds.c +++ b/src/mds.c @@ -164,7 +164,7 @@ int main(int argc_, char** argv_) /* Save MDS_DISPLAY environment variable. */ xsnprintf(pathname, /* Excuse the reuse without renaming. */ ":%u", display); - setenv(DISPLAY_ENV, pathname, 1); + fail_if (setenv(DISPLAY_ENV, pathname, 1) < 0); /* Create display socket. */ xsnprintf(pathname, "%s/%u.socket", MDS_RUNTIME_ROOT_DIRECTORY, display); -- cgit v1.2.3-70-g09d2