tests/padmonitor: Correcly strdup the result of get_metadata.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 21 Oct 2014 11:07:02 +0000 (13:07 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 21 Oct 2014 18:13:51 +0000 (20:13 +0200)
commit1fcaf8918f2d6b564f31cd35a4d2cc4448f60c83
treeb12036ac86bb71d0aa0032c667d689d0220ba517
parent3e557ca92bf03a50698a48962c8dc0547247b5e3
tests/padmonitor: Correcly strdup the result of get_metadata.

The const pointer was becoming invalid after the first call to add_metadata,
and we ended up setting corrupted data on the second call.
validate/tests/check/validate/padmonitor.c