LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File rarian-no-info.patch of Package rarian (Project GNOME:Factory)

Index: rarian-0.8.1/librarian/rarian-info.c
===================================================================
--- rarian-0.8.1.orig/librarian/rarian-info.c
+++ rarian-0.8.1/librarian/rarian-info.c
@@ -507,12 +507,16 @@ process_info_dir (const char *dir)
       /* Blank line, ignore */
     }
   }
-  if (process_check_file()) {
-    process_add_entry ();
-  } else {
-    free_entry (current_entry);
+
+  if (current_entry) {
+    if (process_check_file()) {
+      process_add_entry ();
+    } else {
+      free_entry (current_entry);
+    }
+    current_entry = NULL;
   }
-  current_entry = NULL;
+
   free (line);
   fclose(fp);
   free (filename);