Re: Patch that eliminates some unnecessary book searches

Mikael Hallendal <[email protected]>
Newsgroups gmane.comp.gnome.devtools
Message-ID <[email protected]>
Russell Shaw wrote:

Hi,

You don't have to add this to the bugzilla, I'll commit it right away.

Thanks,
   Mikael Hallendal

> 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,
> _______________________________________________
> gnome-devtools mailing list
> [email protected]
> http://mail.gnome.org/mailman/listinfo/gnome-devtools


-- 
Imendio HB, http://www.imendio.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.