Fix warning on uninitialized variable.

@carlosmn: a minor compiler fix for #2352