public CCodeExpression? default_value_for_type (DataType type, bool initializer_expression) {
var st = type.data_type as Struct;
var array_type = type as ArrayType;
- if (type.data_type != null && get_ccode_default_value (type.data_type) != "") {
+ if (type.data_type != null && !type.nullable && get_ccode_default_value (type.data_type) != "") {
return new CCodeConstant (get_ccode_default_value (type.data_type));
} else if (initializer_expression && !type.nullable &&
(st != null || (array_type != null && array_type.fixed_length))) {
control-flow/switch.vala \
control-flow/sideeffects.vala \
control-flow/bug652549.vala \
+ control-flow/bug665904.vala \
enums/enums.vala \
structs/structs.vala \
structs/gvalue.vala \