Don't Plan 9 C compiler initialize the rest of member of a struct?

Kyohei Kadota <[email protected]>
Newsgroups gmane.os.plan9.general
Message-ID <CAFMepcn3NR=phN=yp3Y0qeQ12jf40_Q_1krVZUm=2-bUCcMYOw@mail.gmail.com>
Hi, 9fans. I use 9legacy.

About below program, I expected that flags field will initialize to
zero but the value of flags was a garbage, ex, "f8f7".
Is this expected?

```
#include <stdio.h>

struct option {
    int n;
    char *s;
    int flags;
};

int
main(void)
{
    struct option opt = {1, "test"};
    printf("%d %s %x\n", opt.n, opt.s, opt.flags);
    return 0;
}
```
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.