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

[E-devel] SEGV on Start without .e



Current CVS HEAD sefaults on start up without a .e directory.
The patch below fixes the issue.

metrics


Index: src/bin/e_fdo_menu_to_order.c
===================================================================
RCS file: /var/cvs/e/e17/apps/e/src/bin/e_fdo_menu_to_order.c,v
retrieving revision 1.10
diff -u -r1.10 e_fdo_menu_to_order.c
--- src/bin/e_fdo_menu_to_order.c	14 Sep 2006 12:47:08 -0000	1.10
+++ src/bin/e_fdo_menu_to_order.c	18 Sep 2006 12:03:05 -0000
@@ -212,6 +212,7 @@
          snprintf(path, PATH_MAX, "%s/%s", cat_data->path, filename);
          desktop = ecore_desktop_get(path, NULL);
          /* Check if we process */
+         if (!desktop) return;
          if ( (!desktop->hidden) && (!desktop->no_display) && ((desktop->type == NULL) || (strcmp(desktop->type, "Application") == 0)) )
             {
                char *category;