openzwave: fix compilation with GCC14
authorRosen Penev <redacted>
Sun, 14 Jul 2024 18:50:21 +0000 (11:50 -0700)
committerRosen Penev <redacted>
Tue, 16 Jul 2024 17:35:41 +0000 (10:35 -0700)
Null pointer dereference. This looks like a bug fix actually...

Signed-off-by: Rosen Penev <redacted>
utils/openzwave/Makefile
utils/openzwave/patches/010-gcc14.patch [new file with mode: 0644]

index 26075f9cc9a3dd67b83ba9c20c4d24d6982ed0fe..42244900f8772afec2236470234e6f3f51bcf7a8 100644 (file)
@@ -10,7 +10,7 @@ include $(TOPDIR)/rules.mk
 
 PKG_NAME:=openzwave
 PKG_VERSION:=1.6.1149
-PKG_RELEASE:=3
+PKG_RELEASE:=4
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=http://old.openzwave.com/downloads
diff --git a/utils/openzwave/patches/010-gcc14.patch b/utils/openzwave/patches/010-gcc14.patch
new file mode 100644 (file)
index 0000000..2fb0776
--- /dev/null
@@ -0,0 +1,11 @@
+--- a/cpp/src/command_classes/AssociationCommandConfiguration.cpp
++++ b/cpp/src/command_classes/AssociationCommandConfiguration.cpp
+@@ -183,7 +183,7 @@ namespace OpenZWave
+                                       if (Node* node = GetNodeUnsafe())
+                                       {
+                                               Group* group = node->GetGroup(groupIdx);
+-                                              if ( NULL == group)
++                                              if (group)
+                                               {
+                                                       if (firstReports)
+                                                       {
git clone https://git.99rst.org/PROJECT