GNOME Bugzilla – Bug 507484
Code typos
Last modified: 2015-10-31 19:22:18 UTC
Please describe the problem: cr-simple-sel.c line 256 current: if (cur_sel->type_mask | TYPE_SELECTOR) { should be: if (cur_sel->type_mask & TYPE_SELECTOR) { cr-fonts.c line 774 current: } else if (a_weight == FONT_WEIGHT_BOLDER || a_weight == FONT_WEIGHT_BOLDER) { cr_utils_trace_info ("FONT_WEIGHT_BOLDER or FONT_WEIGHT_LIGHTER should not appear here") ; should be: } else if (a_weight == FONT_WEIGHT_BOLDER || a_weight == FONT_WEIGHT_LIGHTER) { cr_utils_trace_info ("FONT_WEIGHT_BOLDER or FONT_WEIGHT_LIGHTER should not appear here") ; Steps to reproduce: 1. Compile code in Visual Studio 2005 with /analyze option Actual results: Expected results: Does this happen every time? Other information:
The same option reveals a potential crash in cr_tknzr_destroy line 2767 current: if (PRIVATE (a_this)->token_cache) { should be: if (PRIVATE (a_this) && PRIVATE (a_this)->token_cache) {
Created attachment 299857 [details] [review] Fix typo in logical condition
Issue in cr-fonts.c already fixed: https://git.gnome.org/browse/libcroco/commit/?id=670e3ee116f48118985f38c5ae97df5a42808822
Thanks for the patch.