fix segmentation fault in getPvstate of MessageButton
Warning, cannot access the index:
_darcs/index: opening of '_darcs/index' failed: permission denied (Permission denied)
diff -rN -u old-DM2K/dm2kApp/dm2k/dm2kMessageButton.c new-DM2K/dm2kApp/dm2k/dm2kMessageButton.c
--- old-DM2K/dm2kApp/dm2k/dm2kMessageButton.c 2022-06-25 22:55:19.260483623 +0200
+++ new-DM2K/dm2kApp/dm2k/dm2kMessageButton.c 2022-06-25 22:55:19.260483623 +0200
@@ -606,9 +606,10 @@
/* evaluated the record on / off state */
dlMessageButton = pmb->dlElement->structure.messageButton;
pvstate = (pd->dataType == DBF_STRING)
- /* T. Straumann: protect against null pointer */
- ? ( strcmp ((char *)pd->array, dlMessageButton->release_msg ? dlMessageButton->release_msg : "") )
- : ( (int)pd->value != (int)pmb->releaseValue );
+ /* T. Straumann: protect against null pointer */
--> -->