summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2016-10-09 15:06:52 +0200
committerSlávek Banko <slavek.banko@axis.cz>2016-10-09 15:06:52 +0200
commit17e82d3d887effaea5779a90e9f9c6ff25e0220a (patch)
tree4371a3216d20143e90108b99c5908c6e78d0c6f1
parent3c3f9e88af9bbab3eb1233bfce80f11abde1ffc8 (diff)
downloadtde-style-baghira-17e82d3d887effaea5779a90e9f9c6ff25e0220a.tar.gz
tde-style-baghira-17e82d3d887effaea5779a90e9f9c6ff25e0220a.zip
Fix ambiguous order of code
Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
-rw-r--r--sessionapplet/dmctl.cpp3
1 files changed, 2 insertions, 1 deletions
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;