summaryrefslogtreecommitdiffstats
path: root/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
diff options
context:
space:
mode:
Diffstat (limited to '4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c')
-rw-r--r--4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
index 7e771e5..c6fc4d6 100644
--- a/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
+++ b/4a-hal/4a-hal-controllers/4a-hal-controllers-api-loader.c
@@ -95,7 +95,6 @@ static int HalCtlsInitOneApi(AFB_ApiT apiHandle)
// Fill SpecificHalDatadata structure
currentCtlHalData->internal = 1;
- currentCtlHalData->apiName = (char *) ctrlConfig->api;
currentCtlHalData->sndCardPath = (char *) ctrlConfig->uid;
currentCtlHalData->info = (char *) ctrlConfig->info;
@@ -183,6 +182,8 @@ int HalCtlsCreateApi(AFB_ApiT apiHandle, char *path, struct HalMgrData *HalMgrGl
if(! currentCtlHalData)
return -4;
+ currentCtlHalData->apiName = (char *) ctrlConfig->api;
+
// Stores current hal controller data in controller config
ctrlConfig->external = (void *) currentCtlHalData;