An element of an object shall not be initialized more than once
An element of an object shall not be initialized more than once.
Designated initializers allow explicitly initializing elements of objects such as arrays in any order. However, using designated initializers, one can inadvertently initialize the same element twice and therefore overwrite the first initialization.
If you expect a rule violation but do not see it, refer to the documentation of Polyspace® Code Prover™ or Polyspace Code Prover Server™.
| Group: Initialization |
| Category: Required |
| AGC Category: Required |