diff options
author | Slávek Banko <slavek.banko@axis.cz> | 2016-10-09 15:06:52 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2016-10-09 15:06:52 +0200 |
commit | 17e82d3d887effaea5779a90e9f9c6ff25e0220a (patch) | |
tree | 4371a3216d20143e90108b99c5908c6e78d0c6f1 | |
parent | 3c3f9e88af9bbab3eb1233bfce80f11abde1ffc8 (diff) | |
download | tde-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.cpp | 3 |
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; |