summaryrefslogtreecommitdiff
path: root/legacy/efreet
diff options
context:
space:
mode:
authorSebastian Dransfeld <sd@tango.flipp.net>2008-12-13 21:00:49 +0000
committerSebastian Dransfeld <sd@tango.flipp.net>2008-12-13 21:00:49 +0000
commit82c1c80632371c1ace9a79f2fa5b1bb6acca26f9 (patch)
tree1c08733199c60025248029d073deff16964543a8 /legacy/efreet
parent55f7df7ef96190a3de21f8d8e3e0f0a78a3b1dd4 (diff)
Only save menu element name if it exists.
SVN revision: 38131
Diffstat (limited to 'legacy/efreet')
-rw-r--r--legacy/efreet/src/lib/efreet_menu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/legacy/efreet/src/lib/efreet_menu.c b/legacy/efreet/src/lib/efreet_menu.c
index 3f26f4278c..ccb30f22f5 100644
--- a/legacy/efreet/src/lib/efreet_menu.c
+++ b/legacy/efreet/src/lib/efreet_menu.c
@@ -721,8 +721,11 @@ efreet_menu_save_menu(Efreet_Menu *menu, FILE *f, int indent)
721{ 721{
722 efreet_menu_save_indent(f, indent); 722 efreet_menu_save_indent(f, indent);
723 fprintf(f, "<Menu>\n"); 723 fprintf(f, "<Menu>\n");
724 efreet_menu_save_indent(f, indent + 1); 724 if (menu->name)
725 fprintf(f, "<Name>%s</Name>\n", menu->name); 725 {
726 efreet_menu_save_indent(f, indent + 1);
727 fprintf(f, "<Name>%s</Name>\n", menu->name);
728 }
726 729
727 if (indent == 0) 730 if (indent == 0)
728 { 731 {