diff options
author | Stéphane Desneux <stephane.desneux@iot.bzh> | 2019-10-17 13:41:13 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@automotivelinux.org> | 2019-10-17 13:41:13 +0000 |
commit | c9cebac8f8494c3a493928728bb2e00fc1290e1a (patch) | |
tree | dea0b16fe523200a45e9549884af1f57be64c797 | |
parent | 62a0bb9c2e8e24ae3d2a6b87ed263dd0089c3ec8 (diff) | |
parent | 45ae99503f5be818d79a1cdbf6540a717ac02ce7 (diff) |
Merge "Correct behaviour of halmap handling function"
-rw-r--r-- | src/4a-internals-hal/4a-internals-hal-cb.c | 4 |
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; |