diff options
author | Monsta <[email protected]> | 2015-08-21 19:05:22 +0300 |
---|---|---|
committer | infirit <[email protected]> | 2015-08-31 21:57:23 +0200 |
commit | 8c08661057c66d312bb0b217cbd70f00e25c98c6 (patch) | |
tree | 1520faf3635c57c043d2e7db201e5d15298d6e6f /logview | |
parent | 8c6d46814776d326db1901c3c0b7f22a9f02a9d8 (diff) | |
download | mate-utils-8c08661057c66d312bb0b217cbd70f00e25c98c6.tar.bz2 mate-utils-8c08661057c66d312bb0b217cbd70f00e25c98c6.tar.xz |
logview: make sure to always NULL-terminate log lines array
from
https://git.gnome.org/browse/gnome-system-log/commit/?id=af6e5f3fd809ec7e477434e8279d1b2f8817f33d
Diffstat (limited to 'logview')
-rw-r--r-- | logview/logview-log.c | 6 |
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 */ |