mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-02 12:01:32 +01:00
gpgscm: Fix checking for opcode arguments.
* tests/gpgscm/scheme.c (Eval_Cycle): Update 'pcd' after dispatching an instruction. Fixes-commit: 9c6407d17e0cb9f4a370b1b83e7816577ec7d29d Signed-off-by: Justus Winter <justus@g10code.com>
This commit is contained in:
parent
0e1729bb99
commit
aae50e0b6a
@ -3451,9 +3451,10 @@ Eval_Cycle(scheme *sc, enum scheme_opcodes op) {
|
|||||||
double dd;
|
double dd;
|
||||||
#endif
|
#endif
|
||||||
int (*comp_func)(num, num) = NULL;
|
int (*comp_func)(num, num) = NULL;
|
||||||
const struct op_code_info *pcd = &dispatch_table[op];
|
const struct op_code_info *pcd;
|
||||||
|
|
||||||
dispatch:
|
dispatch:
|
||||||
|
pcd = &dispatch_table[op];
|
||||||
if (pcd->name[0] != 0) { /* if built-in function, check arguments */
|
if (pcd->name[0] != 0) { /* if built-in function, check arguments */
|
||||||
char msg[STRBUFFSIZE];
|
char msg[STRBUFFSIZE];
|
||||||
if (! check_arguments (sc, pcd, msg, sizeof msg)) {
|
if (! check_arguments (sc, pcd, msg, sizeof msg)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user