Ticket #8705: segfault_use.patch
File segfault_use.patch, 996 bytes (added by , 16 years ago) |
---|
-
gui/theme-config.cpp
617 617 if (iterk->key == "use") { 618 618 if (iterk->value == name) 619 619 error("Theme section [%s]: cannot use itself", name.c_str()); 620 if (!config.hasSection( name))621 error("Undefined use of section [%s]", name.c_str());620 if (!config.hasSection(iterk->value)) 621 error("Undefined use of section [%s]", iterk->value.c_str()); 622 622 processResSection(config, iterk->value, true); 623 623 continue; 624 624 } 625 625 if (iterk->key == "useAsIs") { 626 626 if (iterk->value == name) 627 627 error("Theme section [%s]: cannot use itself", name.c_str()); 628 if (!config.hasSection( name))629 error("Undefined use of section [%s]", name.c_str());628 if (!config.hasSection(iterk->value)) 629 error("Undefined use of section [%s]", iterk->value.c_str()); 630 630 processResSection(config, iterk->value); 631 631 continue; 632 632 }