summaryrefslogtreecommitdiff
path: root/test/interactive-helper/extract-control.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/interactive-helper/extract-control.cc')
-rw-r--r--test/interactive-helper/extract-control.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/interactive-helper/extract-control.cc b/test/interactive-helper/extract-control.cc
index a1b3600aa..3f7feabcb 100644
--- a/test/interactive-helper/extract-control.cc
+++ b/test/interactive-helper/extract-control.cc
@@ -21,8 +21,7 @@ bool ExtractMember(const char *File,const char *Member)
if (Extract.Control == 0)
return true;
- write(STDOUT_FILENO,Extract.Control,Extract.Length);
- return true;
+ return write(STDOUT_FILENO,Extract.Control,Extract.Length) != -1;
}
int main(int argc, const char *argv[])