Enlightenment CVS committal Author : englebass Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_fdo_menu_to_order.c Log Message: Never assign a alloc'ed to a const if we are to free it! =================================================================== RCS file: /cvs/e/e17/apps/e/src/bin/e_fdo_menu_to_order.c,v retrieving revision 1.27 retrieving revision 1.28 diff -u -3 -r1.27 -r1.28 --- e_fdo_menu_to_order.c 19 Nov 2006 08:58:05 -0000 1.27 +++ e_fdo_menu_to_order.c 12 Jan 2007 13:16:41 -0000 1.28 @@ -118,10 +118,10 @@ if ((order_data.sheap->size) && (!ecore_file_exists(order_data.order_path))) { Ecore_Sheap *sheap; - const char *temp; + char *temp; sheap = ecore_sheap_new(ecore_str_compare, 100); - temp = ecore_file_get_dir((const char *) order_data.order_path); + temp = ecore_file_get_dir(order_data.order_path); if ((sheap) && (temp)) { ecore_sheap_set_free_cb(sheap, free); @@ -130,7 +130,7 @@ /* If we create a dir, we add it to the parents .order file. */ _e_fdo_menu_to_order_add_sheap(sheap, temp, ecore_file_get_file(order_data.order_path)); } - if (temp) free((char *) temp); + if (temp) free(temp); if (sheap) ecore_sheap_destroy(sheap); } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs