aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-23 23:49:39 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-23 23:49:39 +0200
commitd29a7fd598af9ad840cf43cf9dca9ab3f756942c (patch)
treec1dda8a6b44d622b6d3028d56195997cdae1be61
parentimprove readme and include must of the readme to the overview chapter (diff)
downloadmds-d29a7fd598af9ad840cf43cf9dca9ab3f756942c.tar.gz
mds-d29a7fd598af9ad840cf43cf9dca9ab3f756942c.tar.bz2
mds-d29a7fd598af9ad840cf43cf9dca9ab3f756942c.tar.xz
setenv can fail
Signed-off-by: Mattias Andrée <maandree@operamail.com>
-rw-r--r--src/mds.c2
1 files changed, 1 insertions, 1 deletions
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);