Index: trunk/src/rats.c =================================================================== --- trunk/src/rats.c (revision 2401) +++ trunk/src/rats.c (revision 2402) @@ -229,7 +229,7 @@ if (menu->Style) { STYLE_LOOP(PCB); { - if (style->name && !NSTRCMP(style->name, menu->Style)) { + if (!NSTRCMP(style->name, menu->Style)) { net->Style = style; break; } Index: trunk/src_plugins/djopt/djopt.c =================================================================== --- trunk/src_plugins/djopt/djopt.c (revision 2401) +++ trunk/src_plugins/djopt/djopt.c (revision 2402) @@ -2482,7 +2482,7 @@ f |= LT_COMPONENT; } for (j = 0; j < l->Number[i]; j++) { - if (l->Entries[i][j] >= 0 && l->Entries[i][j] < max_copper_layer) { + if (l->Entries[i][j] < max_copper_layer) { layer_type[l->Entries[i][j]] |= f; layer_groupings[l->Entries[i][j]] = i; if (solder_layer == -1 && f == LT_SOLDER)