The right way to check for this is as follows: `if (u.field_set & (1 << UF_HOST)) {`

Likewise for all other if-clauses that check for `len`. `len` is not initialized if the proper bit in `field_set` is not set.