Enlightenment CVS committal Author : dj2 Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_debug.h Log Message: - don't segv on Solaris while debugging if the inheritance string is null =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_debug.h,v retrieving revision 1.17 retrieving revision 1.18 diff -u -3 -r1.17 -r1.18 --- ewl_debug.h 13 Mar 2006 18:20:41 -0000 1.17 +++ ewl_debug.h 11 Apr 2006 16:39:38 -0000 1.18 @@ -154,7 +154,10 @@ "\t%s\n\n" \ "\tas the wrong type. (%s) instead of (%s).\n" \ "\tPlease fix your program.\n", \ - __func__, str, EWL_WIDGET(ptr)->inheritance, type); \ + __func__, str, \ + (EWL_WIDGET(ptr)->inheritance ? \ + EWL_WIDGET(ptr)->inheritance : \ + "NULL") , type); \ ewl_backtrace(); \ ewl_segv(); \ } \ @@ -171,7 +174,10 @@ "\t%s\n\n" \ "\tas the wrong type. (%s) instead of (%s).\n" \ "\tPlease fix your program.\n", \ - __func__, str, EWL_WIDGET(ptr)->inheritance, type); \ + __func__, str, \ + (EWL_WIDGET(ptr)->inheritance ? \ + EWL_WIDGET(ptr)->inheritance : \ + "NULL") , type); \ ewl_backtrace(); \ ewl_segv(); \ return ret; \ ------------------------------------------------------- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs