summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/glib-utils.c4
1 files changed, 4 insertions, 0 deletions
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;