REST: Add missing pointer dereference
When converting a bool from JSON into D-Bus, a
dereference was missing causing the code to always
output a 1 since since it checked the address value
and not the actual bool value.
Change-Id: I521418c25bd23c64b59d599f5c5298d8b89cd67c
Signed-off-by: Matt Spinler <spinler@us.ibm.com>
diff --git a/include/openbmc_dbus_rest.hpp b/include/openbmc_dbus_rest.hpp
index 18b99dd..b044488 100644
--- a/include/openbmc_dbus_rest.hpp
+++ b/include/openbmc_dbus_rest.hpp
@@ -601,7 +601,7 @@
}
else if (b != nullptr)
{
- boolInt = b ? 1 : 0;
+ boolInt = *b ? 1 : 0;
}
else if (stringValue != nullptr)
{