Skip to content

Commit aa31ff6

Browse files
committed
Fix uninitialize error
1 parent b1c788b commit aa31ff6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/libasr/diagnostics.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ struct Span {
2323
// Lines of source code from first_line to last_line
2424
std::vector<std::string> source_code;
2525

26-
Span(const Location &loc) : loc{loc} {}
26+
Span(const Location &loc)
27+
: loc{loc}, first_line{0}, first_column{0}, last_line{0}, last_column{0} {}
2728
};
2829

2930
/*

0 commit comments

Comments
 (0)