diff options
Diffstat (limited to 'src/fr-command-rpm.c')
-rw-r--r-- | src/fr-command-rpm.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |