client: fix use of uninitialized value