From 2926f7270c08f711ca01b5affe49aac7e69f1385 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Wed, 2 Jan 2002 11:09:56 +0000 Subject: Always check the setenv() return value. --- src/msgexec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/msgexec.c') 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. */ -- cgit v1.1