mirror of https://github.com/GNOME/gimp.git
Bug 738952 - Invalid syntax for (cond) causes a segfault
Segfault in script-fu, spotted by Pedro Gimeno.
This commit is contained in:
parent
ebb66ea569
commit
b6946af0e1
|
@ -3144,6 +3144,9 @@ static pointer opexe_1(scheme *sc, enum scheme_opcodes op) {
|
|||
if ((sc->code = cdar(sc->code)) == sc->NIL) {
|
||||
s_return(sc,sc->value);
|
||||
}
|
||||
if(!sc->code) {
|
||||
Error_0(sc,"syntax error in cond");
|
||||
}
|
||||
if(car(sc->code)==sc->FEED_TO) {
|
||||
if(!is_pair(cdr(sc->code))) {
|
||||
Error_0(sc,"syntax error in cond");
|
||||
|
|
Loading…
Reference in New Issue