[test] Avoid reading a potentially uninitialized variable in tx_invalid-test
commit8455e367fe79ff53ea81d283f3435e74b1633c88
authorpracticalswift <practicalswift@users.noreply.github.com>
Sat, 14 Jan 2017 19:40:35 +0000 (14 20:40 +0100)
committerpracticalswift <practicalswift@users.noreply.github.com>
Sat, 21 Jan 2017 09:57:00 +0000 (21 10:57 +0100)
tree52ddf8ed1beeb7d53a6307acf42adb2f7ba0988f
parent02e5308c1b9f3771bbe49bc5036215fa2bd66aa9
[test] Avoid reading a potentially uninitialized variable in tx_invalid-test

Prior to this commit the err variable was not guaranteed to be set before
the check ...

    BOOST_CHECK_MESSAGE(err != SCRIPT_ERR_OK, ScriptErrorString(err));
src/test/transaction_tests.cpp