Enlightenment CVS committal Author : stffrdhrn Project : e17 Module : apps/e
Dir : e17/apps/e/src/bin Modified Files: e_ipc_handlers.h Log Message: Do some NULL checks, otherwise we crash when themes dont exist =================================================================== RCS file: /cvsroot/enlightenment/e17/apps/e/src/bin/e_ipc_handlers.h,v retrieving revision 1.61 retrieving revision 1.62 diff -u -3 -r1.61 -r1.62 --- e_ipc_handlers.h 6 Aug 2005 04:00:03 -0000 1.61 +++ e_ipc_handlers.h 8 Aug 2005 13:49:27 -0000 1.62 @@ -984,7 +984,11 @@ int bytes; efd = e_font_default_get(text_class); - data = e_ipc_codec_2str_int_enc(efd->text_class, efd->font, efd->size, &bytes); + if (efd == NULL) + data = NULL; + else + data = e_ipc_codec_2str_int_enc(efd->text_class, efd->font, efd->size, &bytes); + SEND_DATA(E_IPC_OP_FONT_DEFAULT_GET_REPLY); END_STRING(text_class); @@ -4189,7 +4193,11 @@ int bytes; ect = e_theme_config_get(category); - data = e_ipc_codec_2str_enc(ect->category, ect->file, &bytes); + if (ect == NULL) + data = NULL; + else + data = e_ipc_codec_2str_enc(ect->category, ect->file, &bytes); + SEND_DATA(E_IPC_OP_THEME_GET_REPLY); END_STRING(category); ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs