and skip entires that done have files... :)
authorCarsten Haitzler <raster@rasterman.com>
Wed, 21 Mar 2001 04:42:59 +0000 (04:42 +0000)
committerCarsten Haitzler <raster@rasterman.com>
Wed, 21 Mar 2001 04:42:59 +0000 (04:42 +0000)
SVN revision: 4425

src/menubuild.c

index a772546..e9d21c0 100644 (file)
@@ -273,12 +273,14 @@ e_build_menu_gnome_apps_build_dir(E_Build_Menu *bm, char *dir)
             f = fopen(buf, "rb");
          }
        /* regular file */
-       else
+       else if (e_file_exists(buf))
          {
             sprintf(buf, "%s/%s", dir, s);
             
             f = fopen(buf, "rb");
          }
+       /* doesnt exist at all? next item */
+       else continue;
        if (f)
          {
             while (fgets(buf, 4096, f))