From 61b35cccfee84a5628eefde6425b04560523a963 Mon Sep 17 00:00:00 2001 From: Christian Thaeter Date: Thu, 4 Jan 2007 12:02:34 +0100 Subject: [PATCH] add few checks --- engine/action.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/engine/action.c b/engine/action.c index d07edbb..c52ca97 100644 --- a/engine/action.c +++ b/engine/action.c @@ -79,6 +79,10 @@ mala_action_new (MalaString name, acogc_alloc_type data_alloc, MalaEngine engine) { + REQUIRE (name); + REQUIRE (engine); + REQUIRE (data || data_alloc==ACOGC_UNSET); + MalaAction self = acogc_factory_alloc (&engine->gcfactory_actions); self->name = name; -- 2.11.4.GIT