summaryrefslogtreecommitdiff
path: root/logview/logview-log.c
diff options
context:
space:
mode:
Diffstat (limited to 'logview/logview-log.c')
-rw-r--r--logview/logview-log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/logview/logview-log.c b/logview/logview-log.c
index 2f752b02..602f78a7 100644
--- a/logview/logview-log.c
+++ b/logview/logview-log.c
@@ -295,14 +295,14 @@ do_read_new_lines (GIOSchedulerJob *io_job,
g_ptr_array_add (lines, (gpointer) line);
}
+ /* NULL-terminate the array again */
+ g_ptr_array_add (lines, NULL);
+
if (err) {
job->err = err;
goto out;
}
- /* NULL-terminate the array again */
- g_ptr_array_add (lines, NULL);
-
log->priv->has_new_lines = FALSE;
/* we'll return only the new lines in the callback */