Only fill total_size in CheckBufferOverrun::checkFunctionParameter when it's useful.
Fixed #5874 (False positive: 'opposite conditions in nested if' with arrays)
Merge pull request #327 from simartin/only_fill_if_needed

Only fill total_size in CheckBufferOverrun::checkFunctionParameter when useful