Skip to content

Commit

Permalink
transition/script: print error if curve is not a string
Browse files Browse the repository at this point in the history
Signed-off-by: Yuxuan Shui <[email protected]>
  • Loading branch information
yshui committed Aug 18, 2024
1 parent c397aa8 commit bc455e8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/transition/script.c
Original file line number Diff line number Diff line change
Expand Up @@ -444,6 +444,10 @@ transition_compile(struct compilation_stack **stack_entry, config_setting_t *set
free(err);
return false;
}
} else if (config_setting_lookup(setting, "curve") != NULL) {
casprintf(out_err, "Invalid curve definition at line %d. `curve` must be a string.",
config_setting_source_line(setting));
return false;
} else {
curve = CURVE_LINEAR_INIT;
}
Expand Down

0 comments on commit bc455e8

Please sign in to comment.