Direct cleanup in master branch

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
Slava Zanko 2010-05-05 21:52:27 +03:00
parent d2a7ea87ca
commit 2a8a4131b2

View File

@ -446,7 +446,7 @@ close_error_pipe (int error, const char *text)
title = _("Warning");
if (old_error >= 0)
{
if (dup2 (old_error, 2))
if (dup2 (old_error, 2) == -1)
{
message (error, MSG_ERROR, "%s", _("Error dup'ing old error pipe"));
return 1;