X-Git-Url: http://review.tizen.org/git/?p=platform%2Fupstream%2Fat-spi2-core.git;a=blobdiff_plain;f=bus%2Fat-spi-bus-launcher.c;h=91bdd482cef37d88932b50d314537b65e9362ece;hp=b15345bf547e5e62c8a2d85c74fe761f5def003b;hb=31234e0be7d17d03895879a36ce17be814b81257;hpb=b23116a5534314600dfe2735aec28ce9b632feb4 diff --git a/bus/at-spi-bus-launcher.c b/bus/at-spi-bus-launcher.c index b15345b..91bdd48 100644 --- a/bus/at-spi-bus-launcher.c +++ b/bus/at-spi-bus-launcher.c @@ -400,8 +400,8 @@ ensure_a11y_bus_daemon (A11yBusLauncher *app, char *config_path) return TRUE; error: - close (app->pipefd[0]); - close (app->pipefd[1]); + if (app->pipefd[0] > 0) close (app->pipefd[0]); + if (app->pipefd[1] > 0) close (app->pipefd[1]); app->state = A11Y_BUS_STATE_ERROR; return FALSE;