Closed roylee17 closed 6 years ago
You are right Roy. Pointer should be initialized to NULL, since this not failing on Linux, due to null-initialized memory or some debug option in make check. Also in https://github.com/lbryio/lbrycrd/blob/master/src/test/claimtrie_tests.cpp#L87 @kaykurokawa should be noted.
You are right Roy. Pointer should be initialized to NULL, since this not failing on Linux, due to null-initialized memory or some debug option in make check. Also in https://github.com/lbryio/lbrycrd/blob/master/src/test/claimtrie_tests.cpp#L87 @kaykurokawa should be noted.
@bvbfan The line you pointed out does have a bug, but initializing the value to null is not the optimal solution. Properly ensuring the variable is allocated is the actual fix. If instead the caller really wanted to pass null, then NULL should be passed, not a variable pointing to NULL. A subtle difference, but noted for clarification.
This issue is resolved by #173
Do I need to perform some pre-test setup? (I'm running on MacOS)
Some test cases run without problem.