init: fixed possible unintialized errno set