From 144ac2fb1395a76a04773c577965a8754f2dab3b Mon Sep 17 00:00:00 2001 From: rbuj Date: Fri, 31 Jan 2020 11:31:56 +0100 Subject: glib-utils: remove n_fields function --- src/fr-command-rpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/fr-command-rpm.c') diff --git a/src/fr-command-rpm.c b/src/fr-command-rpm.c index 227fd58..3c5c755 100644 --- a/src/fr-command-rpm.c +++ b/src/fr-command-rpm.c @@ -73,7 +73,7 @@ mktime_from_string (char *month, if (year != NULL) { if (strchr (year, ':') != NULL) { char **fields = g_strsplit (year, ":", 2); - if (n_fields (fields) == 2) { + if ((fields != NULL) && (g_strv_length (fields) == 2)) { time_t now; struct tm *now_tm; -- cgit v1.2.1