Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/bin Modified Files: ewl_text_editor_test.c Log Message: Check for NULL contents. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/bin/ewl_text_editor_test.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -3 -r1.8 -r1.9 --- ewl_text_editor_test.c 21 Nov 2005 03:55:47 -0000 1.8 +++ ewl_text_editor_test.c 7 Dec 2005 22:23:52 -0000 1.9 @@ -362,8 +362,10 @@ entry = ewl_widget_name_find("entry"); txt = ewl_text_text_get(EWL_TEXT(entry)); - printf("%s\n", txt); - FREE(txt); + if (txt) { + printf("%s\n", txt); + FREE(txt); + } } static void ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs