Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
@ -112,7 +112,8 @@ DM::exec( const char *cmd, TQCString &buf )
if (fd < 0)
goto busted;
if (::write( fd, cmd, (tl = strlen( cmd )) ) != tl) {
tl = strlen( cmd );
if (::write( fd, cmd, tl ) != tl) {
bust:
::close( fd );
fd = -1;