From bdafd0c2db93e85ed0e7b19fd502e254e5b587ea Mon Sep 17 00:00:00 2001 From: zhuyaliang <15132211195@163.com> Date: Fri, 15 Sep 2023 13:59:17 +0800 Subject: Fix Segfault on opening .deb files after recent Debian Unstable updates Fix https://github.com/mate-desktop/engrampa/issues/496 --- src/glib-utils.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/glib-utils.c b/src/glib-utils.c index 2ac5670..08dcb5c 100644 --- a/src/glib-utils.c +++ b/src/glib-utils.c @@ -390,6 +390,10 @@ split_line (const char *line, fields[i] = g_strndup (scan, field_end - scan); scan = eat_spaces (field_end); } + else if (scan != NULL && i == n_fields - 1) + { + fields[i] = g_strdup (scan); + } } return fields; -- cgit v1.2.1