diff --git a/ui/qt/sctp_chunk_statistics_dialog.cpp b/ui/qt/sctp_chunk_statistics_dialog.cpp index f9bd515311..41a9705016 100644 --- a/ui/qt/sctp_chunk_statistics_dialog.cpp +++ b/ui/qt/sctp_chunk_statistics_dialog.cpp @@ -111,8 +111,13 @@ void SCTPChunkStatisticsDialog::fillTable(bool all) } else { fp = ws_fopen(fname,"r"); - if (!fp && errno == ENOENT) { - init = true; + if (!fp) { + if (errno == ENOENT) { + init = true; + } else { + g_log(NULL, G_LOG_LEVEL_ERROR, "Can't open %s: %s", fname, g_strerror(errno)); + return; + } } } g_free (fname);