diff options
Diffstat (limited to 'src/port/wait_error.c')
-rw-r--r-- | src/port/wait_error.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/port/wait_error.c b/src/port/wait_error.c index ac9c52b3169..01728d7f764 100644 --- a/src/port/wait_error.c +++ b/src/port/wait_error.c @@ -34,7 +34,6 @@ char * wait_result_to_str(int exitstatus) { char str[512]; - char *result; if (WIFEXITED(exitstatus)) { @@ -83,10 +82,5 @@ wait_result_to_str(int exitstatus) _("child process exited with unrecognized status %d"), exitstatus); -#ifndef FRONTEND - result = pstrdup(str); -#else - result = strdup(str); -#endif - return result; + return pstrdup(str); } |