aboutsummaryrefslogtreecommitdiff
path: root/gcc/cobol/except.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/cobol/except.cc')
-rw-r--r--gcc/cobol/except.cc9
1 files changed, 5 insertions, 4 deletions
diff --git a/gcc/cobol/except.cc b/gcc/cobol/except.cc
index 3510ca3..5374201 100644
--- a/gcc/cobol/except.cc
+++ b/gcc/cobol/except.cc
@@ -279,10 +279,11 @@ symbol_declaratives_add( size_t program,
char achBlob[32];
sprintf(achBlob, "_DECLARATIVE_BLOB%d_", blob_count++);
- cbl_field_data_t data = { .memsize = capacity_cast(len),
- .capacity = capacity_cast(len),
- .initial = reinterpret_cast<char*>(blob),
- .picture = reinterpret_cast<char*>(blob) };
+ cbl_field_data_t data = {};
+ data.memsize = capacity_cast(len);
+ data.capacity = capacity_cast(len);
+ data.initial = reinterpret_cast<char*>(blob);
+ data.picture = reinterpret_cast<char*>(blob);
cbl_field_t field = { 0, FldBlob, FldInvalid, constant_e,
0, 0, 0, cbl_occurs_t(), 0, "",
0, {}, data, NULL };