summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;