summaryrefslogtreecommitdiff
path: root/rc/bin/patch
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2015-05-26 19:25:06 +0200
committercinap_lenrek <cinap_lenrek@felloff.net>2015-05-26 19:25:06 +0200
commitd6a91e0ae47b4e1df9a9783c49666e2a7357e277 (patch)
tree85f75641c07fbbcd156e5660a9506909a175e860 /rc/bin/patch
parentcfafa676408057a7434ec81e5dc15ae0ffba91f2 (diff)
downloadplan9front-d6a91e0ae47b4e1df9a9783c49666e2a7357e277.tar.xz
cc: set unspecified elements to zero in local variable initializers
the compiler used to skip zero initialization when initializer list was given not covering unspecified elements. now we zero all non explicitely initialized elements. for example: typedef struct F F; struct F { int a; int b; int c; }; void main(void) { char a[16] = { 1, 2, 3 }; /* a[3..15] initialized to zero */ F f = { .b = 1 }; /* f.a, f.c initialized to zero */ }
Diffstat (limited to 'rc/bin/patch')
0 files changed, 0 insertions, 0 deletions