summaryrefslogtreecommitdiff
path: root/src/fr-command-cpio.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-01-31 11:31:56 +0100
committerZenWalker <[email protected]>2020-03-08 21:14:36 +0100
commit144ac2fb1395a76a04773c577965a8754f2dab3b (patch)
tree61820c300316ed7b1893160b53f0f4b7ae5c408e /src/fr-command-cpio.c
parent3c6c1cef810b6a27ecf5142893bd960d6efb32f2 (diff)
downloadengrampa-144ac2fb1395a76a04773c577965a8754f2dab3b.tar.bz2
engrampa-144ac2fb1395a76a04773c577965a8754f2dab3b.tar.xz
glib-utils: remove n_fields function
Diffstat (limited to 'src/fr-command-cpio.c')
-rw-r--r--src/fr-command-cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fr-command-cpio.c b/src/fr-command-cpio.c
index 6cbe61d..457de72 100644
--- a/src/fr-command-cpio.c
+++ b/src/fr-command-cpio.c
@@ -66,7 +66,7 @@ mktime_from_string (char *month,
tm.tm_mday = atoi (mday);
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;