diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-23 23:49:39 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-23 23:49:39 +0200 |
commit | d29a7fd598af9ad840cf43cf9dca9ab3f756942c (patch) | |
tree | c1dda8a6b44d622b6d3028d56195997cdae1be61 /src | |
parent | improve readme and include must of the readme to the overview chapter (diff) | |
download | mds-d29a7fd598af9ad840cf43cf9dca9ab3f756942c.tar.gz mds-d29a7fd598af9ad840cf43cf9dca9ab3f756942c.tar.bz2 mds-d29a7fd598af9ad840cf43cf9dca9ab3f756942c.tar.xz |
setenv can fail
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/mds.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |