summaryrefslogtreecommitdiff
path: root/ui
diff options
context:
space:
mode:
authorMartin Kaiser <wireshark@kaiser.cx>2013-11-19 07:05:34 +0000
committerMartin Kaiser <wireshark@kaiser.cx>2013-11-19 07:05:34 +0000
commit3d0c92e0170c05b0050dce58ceac24a6b06a3a21 (patch)
treef2cb80f457319a09292a255fbafa72c93d61ad18 /ui
parent864431b900d653322fadd148a615d03598f62b24 (diff)
downloadwireshark-3d0c92e0170c05b0050dce58ceac24a6b06a3a21.tar.gz
fix compiler warning about write-only variable
svn path=/trunk/; revision=53426
Diffstat (limited to 'ui')
-rw-r--r--ui/qt/follow_stream_dialog.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ui/qt/follow_stream_dialog.cpp b/ui/qt/follow_stream_dialog.cpp
index cd8c8aff03..7fe487f28c 100644
--- a/ui/qt/follow_stream_dialog.cpp
+++ b/ui/qt/follow_stream_dialog.cpp
@@ -516,10 +516,11 @@ void FollowStreamDialog::add_text(QString text, gboolean is_from_server, guint32
FILE* fh = fdopen(dup(FileDescriptor), "wb");
nwritten = fwrite(text.toUtf8().constData(), text.length(), 1, fh);
fclose(fh);
+ if ((int)nwritten != text.length()) {
#if 0
- if (nwritten != text.length())
report_an_error_maybe();
#endif
+ }
return;
}