summaryrefslogtreecommitdiff
path: root/logview
diff options
context:
space:
mode:
Diffstat (limited to 'logview')
-rw-r--r--logview/src/logview-app.c2
-rw-r--r--logview/src/logview-log.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/logview/src/logview-app.c b/logview/src/logview-app.c
index fc5941fc..ba9bec7b 100644
--- a/logview/src/logview-app.c
+++ b/logview/src/logview-app.c
@@ -185,7 +185,7 @@ enumerate_next_files_async_cb (GObject *source,
continue;
}
- if (type != (G_FILE_TYPE_REGULAR || G_FILE_TYPE_SYMBOLIC_LINK) ||
+ if (((type != G_FILE_TYPE_REGULAR) && (type != G_FILE_TYPE_SYMBOLIC_LINK)) ||
!g_content_type_is_a (content_type, "text/plain"))
{
g_object_unref (info);
diff --git a/logview/src/logview-log.c b/logview/src/logview-log.c
index b4aef846..6ff92904 100644
--- a/logview/src/logview-log.c
+++ b/logview/src/logview-log.c
@@ -643,7 +643,7 @@ log_load (GIOSchedulerJob *io_job,
is_archive = g_content_type_equals (content_type, "application/x-gzip");
- if (type != (G_FILE_TYPE_REGULAR || G_FILE_TYPE_SYMBOLIC_LINK) ||
+ if (((type != G_FILE_TYPE_REGULAR) && (type != G_FILE_TYPE_SYMBOLIC_LINK)) ||
(!g_content_type_is_a (content_type, "text/plain") && !is_archive))
{
err = g_error_new_literal (LOGVIEW_ERROR_QUARK, LOGVIEW_ERROR_NOT_A_LOG,