summaryrefslogtreecommitdiff
path: root/logview
diff options
context:
space:
mode:
authorrbuj <[email protected]>2021-12-21 10:36:42 +0100
committerLuke from DC <[email protected]>2022-01-21 02:05:34 +0000
commit128b0c963bc05af77247b1888ee6ed8cb89f550d (patch)
treef28b44d940c0ad21530a09600e74f35531dc960e /logview
parentf2f464fc5c7997d5d62d559306fe6a74c1021878 (diff)
downloadmate-utils-128b0c963bc05af77247b1888ee6ed8cb89f550d.tar.bz2
mate-utils-128b0c963bc05af77247b1888ee6ed8cb89f550d.tar.xz
Redundant null check before freeing the variable
Diffstat (limited to 'logview')
-rw-r--r--logview/src/logview-utils.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/logview/src/logview-utils.c b/logview/src/logview-utils.c
index 63c3e47a..a2de5fdb 100644
--- a/logview/src/logview-utils.c
+++ b/logview/src/logview-utils.c
@@ -270,9 +270,7 @@ log_read_dates (const char **buffer_lines, time_t current)
}
}
- if (date_string) {
- g_free (date_string);
- }
+ g_free (date_string);
/* sort the days in chronological order */
days = g_slist_sort (days, days_compare);