summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Aillet <jonathan.aillet@iot.bzh>2019-06-06 14:57:30 +0200
committerJonathan Aillet <jonathan.aillet@iot.bzh>2019-06-06 14:57:30 +0200
commit9d3a506c398703a2b15f811ee1836b3535302632 (patch)
tree19114eb72903902b82c79c4bc2a7aebe14311c31
parent82cde4494319b55b51a6c42e037003b8241c02be (diff)
Prevent errors when multiple devices are found
Prevent errors when multiple devices are found by a 'hal-dependency' BUG-AGL: SPEC-2329 Change-Id: I276cc7abe19d5c0ee27ee3a8950271f58dd14f04 Signed-off-by: Jonathan Aillet <jonathan.aillet@iot.bzh>
-rw-r--r--src/4a-internals-hal/4a-internals-hal-cb.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/4a-internals-hal/4a-internals-hal-cb.c b/src/4a-internals-hal/4a-internals-hal-cb.c
index d9123c9..3e6ddfe 100644
--- a/src/4a-internals-hal/4a-internals-hal-cb.c
+++ b/src/4a-internals-hal/4a-internals-hal-cb.c
@@ -829,6 +829,7 @@ int InternalHalHandleInfoGetResponse(afb_api_t apiHandle, json_object *currentRe
previouslyObtainedDevice->playbackDeviceNb != currentProbedDeviceData->playbackDeviceNb) {
AFB_API_WARNING(apiHandle, "Different audio devices was returned by info get call");
free(previouslyObtainedDevice);
+ *halDeviceDataToFill = NULL;
ret = 1;
}