provider-register: Fix possible segfault

Using uninitialized memory