From 95d589b126c5d1a39ecfec1d3cdeb6e35640e837 Mon Sep 17 00:00:00 2001 From: Martin Preuss Date: Wed, 19 Mar 2025 23:21:55 +0100 Subject: [PATCH] aqhome-react: fixed argument checks. --- apps/aqhome-react/types/unit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/aqhome-react/types/unit.c b/apps/aqhome-react/types/unit.c index 0deee87..cf64dff 100644 --- a/apps/aqhome-react/types/unit.c +++ b/apps/aqhome-react/types/unit.c @@ -490,7 +490,7 @@ void AQHREACT_Unit_OutputData(AQHREACT_UNIT *unit, AQHREACT_PORT *port, const AQ void AQHREACT_Unit_OutputDoubleData(AQHREACT_UNIT *unit, AQHREACT_PORT *port, double data) { - if (unit && unit->outputPortList) { + if (unit && port && unit->outputPortList) { AQHREACT_DATAOBJECT *dataObject; dataObject=AQHREACT_DataObject_new(); @@ -505,7 +505,7 @@ void AQHREACT_Unit_OutputDoubleData(AQHREACT_UNIT *unit, AQHREACT_PORT *port, do void AQHREACT_Unit_OutputStringData(AQHREACT_UNIT *unit, AQHREACT_PORT *port, const char *data) { - if (unit && unit->outputPortList) { + if (unit && port && unit->outputPortList) { AQHREACT_DATAOBJECT *dataObject; dataObject=AQHREACT_DataObject_new();