From ab3f65a15e1b6fe5bdf488e6e879899e283ccc43 Mon Sep 17 00:00:00 2001 From: Milan Crha Date: Fri, 30 Nov 2012 15:29:34 +0100 Subject: Address couple issues found by a Coverity scan --- plugins/pst-import/pst-importer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/pst-import') diff --git a/plugins/pst-import/pst-importer.c b/plugins/pst-import/pst-importer.c index e691962f67..768d1b17c0 100644 --- a/plugins/pst-import/pst-importer.c +++ b/plugins/pst-import/pst-importer.c @@ -867,7 +867,7 @@ pst_import_folders (PstImporter *m, d_ptr = d_ptr->next; } else { - while (d_ptr != topitem && d_ptr->next == NULL) { + while (d_ptr && d_ptr != topitem && d_ptr->next == NULL) { if (m->folder) { g_object_unref (m->folder); m->folder = NULL; -- cgit v1.2.3