Variable, added, would be a garbage value if model is NULL and the following code, if condition, use the uninitialized variable. A side effect could be occurred by that. To avoid, the variable is initialized to zero.
We can flatten lists of lists into lists now!