Fix a possible uninitialized read of `target`.

Thanks to abbeyj for noticing the compiler warning.