aboutgitcodelistschat:MatrixIRC
path: root/seitan.c
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2023-06-02 14:25:30 +0200
committerAlice Frosi <afrosi@redhat.com>2023-06-02 14:26:21 +0200
commitfb2a89cbfc5049d360bb734b4896946e9963e39a (patch)
tree58e9c939ce7a1819bdfb803837b899b46da31e2e /seitan.c
parent80309fbd77cbafa3784fa7295afb56c446d59b93 (diff)
downloadseitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar
seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.gz
seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.bz2
seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.lz
seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.xz
seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.tar.zst
seitan-fb2a89cbfc5049d360bb734b4896946e9963e39a.zip
cooker, seitan: fix some bugs for op call
cooker: - added missing OP_CALL type - local copy of the offset for the type STRUCT - fix return offset - added type LONG in emit_data seitan: - check context if NULL - fix ptr dereference - added a couple of debug print - added error message in seitan for eval
Diffstat (limited to 'seitan.c')
-rw-r--r--seitan.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/seitan.c b/seitan.c
index fff820c..30772df 100644
--- a/seitan.c
+++ b/seitan.c
@@ -238,7 +238,8 @@ int main(int argc, char **argv)
/* The notifier fd was closed by the target */
running = false;
} else if (notifier == events[i].data.fd) {
- eval(&g, req, notifier);
+ if (eval(&g, req, notifier) == -1 )
+ err(" an error occured during the evaluation");
}
}
}