summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/4a-internals-hal/4a-internals-hal-cb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/4a-internals-hal/4a-internals-hal-cb.c b/src/4a-internals-hal/4a-internals-hal-cb.c
index bab3c8c..0f32bfb 100644
--- a/src/4a-internals-hal/4a-internals-hal-cb.c
+++ b/src/4a-internals-hal/4a-internals-hal-cb.c
@@ -509,7 +509,7 @@ int InternalHalHandleOneHalMapObject(afb_api_t apiHandle, struct InternalHalAlsa
}
if(halMapData->actionJ) {
- toLoadAction = calloc(1, sizeof(CtlActionT));
+ toLoadAction = malloc(sizeof(CtlActionT));
if(! toLoadAction) {
AFB_API_ERROR(apiHandle,
"Didn't succeed to allocate structure used to store action to perform "
@@ -575,7 +575,7 @@ int InternalHalHandleOneHalMapObject(afb_api_t apiHandle, struct InternalHalAlsa
halMapData->uid,
halMapData->ctl.name ? halMapData->ctl.name : "'N/A'",
halMapData->cardNb);
- return -10;
+ return -11;
}
return 0;