The argument of enum type CassError is passed by value, earlier the function got the argument by pointer reference and tried to dereference it, which led to some undefined behavior.
Pre-review checklist
[x] I have split my patch into logically separate commits.
[x] All commit messages clearly explain what they change and why.
[x] PR description sums up the changes and reasons why they should be introduced.
[ ] I have enabled appropriate tests in .github/workflows/build.yaml in gtest_filter.
The argument of enum type CassError is passed by value, earlier the function got the argument by pointer reference and tried to dereference it, which led to some undefined behavior.
Pre-review checklist
.github/workflows/build.yaml
ingtest_filter
.