diff --git a/vlib/v/gen/cgen.v b/vlib/v/gen/cgen.v index bccb0620c5..adc170edb8 100644 --- a/vlib/v/gen/cgen.v +++ b/vlib/v/gen/cgen.v @@ -5340,7 +5340,7 @@ fn (mut g Gen) type_default(typ_ table.Type) string { } // Always set pointers to 0 if typ.is_ptr() { - return ' + return '0' } sym := g.table.get_type_symbol(typ) if sym.kind == .array {