Patch that eliminates some unnecessary book searches



diff -ru devhelp/src/dh-base.c devhelp-new/src/dh-base.c
--- devhelp/src/dh-base.c       Tue Jun 22 17:51:48 2004
+++ devhelp-new/src/dh-base.c   Tue Jun 22 17:40:04 2004
@@ -269,6 +269,11 @@
                        gnome_vfs_file_info_unref (info);
                        continue;
                }
+
+               if(strcmp(info->name,".") == 0)
+                   continue;
+               if(strcmp(info->name,"..") == 0)
+                   continue;

                book_path = g_strdup_printf ("%s/%s/%s.devhelp",
                                             directory,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]