commit | b6837e36a34a1e9e7fafea822516e61285e3c09c | [log] [tgz] |
---|---|---|
author | Neels Hofmeyr <neels@hofmeyr.de> | Tue Oct 10 23:20:26 2017 +0200 |
committer | Neels Hofmeyr <neels@hofmeyr.de> | Sun Oct 15 05:52:39 2017 +0200 |
tree | 4c84e9a08d56e013bbb92df8a0b43e4b7f1cd4b9 | |
parent | 2e86ab3a8704462c55245370ebdce9f6b134792d [diff] |
fix db_subscr_get_by_*(): clear output data; test in db_test.c db_subscr_get_by_*() failed to clear the out-param struct, meaning that data could remain in a struct even though it is not present in the database. Always zero out the struct before writing to it. Adjust the db_test to catch this error by writing "-invalid-data-" to each struct before running db get functions. Change-Id: I038bd437452c87841d709fcdd5ac30ab1356b2db