From 17e82d3d887effaea5779a90e9f9c6ff25e0220a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sun, 9 Oct 2016 15:06:52 +0200 Subject: [PATCH] Fix ambiguous order of code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko --- sessionapplet/dmctl.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sessionapplet/dmctl.cpp b/sessionapplet/dmctl.cpp index 788f537..5390c29 100644 --- a/sessionapplet/dmctl.cpp +++ b/sessionapplet/dmctl.cpp @@ -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;