Fixed #5660 (false positive: (error) Uninitialized variable: result)