fixed to assure user data param is set correctly when user structured

* error.c: fixed to assure user data param is set correctly
  when user structured error handler is called (bug 144823)
2 files changed