summaryrefslogtreecommitdiffstats
path: root/src/msgexec.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-01-02 11:09:56 +0000
committerBruno Haible <bruno@clisp.org>2009-06-22 00:30:00 +0200
commit2926f7270c08f711ca01b5affe49aac7e69f1385 (patch)
treeef9ff87fd9a5e2d58260ac6cf921f2882e7ccc27 /src/msgexec.c
parent3208bae8f288423491eb4936666763279d59aa8e (diff)
downloadexternal_gettext-2926f7270c08f711ca01b5affe49aac7e69f1385.zip
external_gettext-2926f7270c08f711ca01b5affe49aac7e69f1385.tar.gz
external_gettext-2926f7270c08f711ca01b5affe49aac7e69f1385.tar.bz2
Always check the setenv() return value.
Diffstat (limited to 'src/msgexec.c')
-rw-r--r--src/msgexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/msgexec.c b/src/msgexec.c
index 7dbdae9..7e02bdb 100644
--- a/src/msgexec.c
+++ b/src/msgexec.c
@@ -46,7 +46,7 @@
#include "findprog.h"
#include "pipe.h"
#include "wait-process.h"
-#include "setenv.h"
+#include "xsetenv.h"
#include "gettext.h"
#define _(str) gettext (str)
@@ -321,10 +321,10 @@ process_string (mp, str, len)
int exitstatus;
/* Set environment variables for the subprocess. */
- setenv ("MSGEXEC_MSGID", mp->msgid, 1);
+ xsetenv ("MSGEXEC_MSGID", mp->msgid, 1);
location = xasprintf ("%s:%ld", mp->pos.file_name,
(long) mp->pos.line_number);
- setenv ("MSGEXEC_LOCATION", location, 1);
+ xsetenv ("MSGEXEC_LOCATION", location, 1);
free (location);
/* Open a pipe to a subprocess. */