swr: fix "may be used uninitialized in this function" warnings