Killed warning 'res' might be used uninitialized.