Fixup of variable declaration

The content of the variable `res` will be returned but it was never
declared (goto case).