diff options
| author | John Hodge <tpg@mutabah.net> | 2016-03-13 13:17:22 +0800 |
|---|---|---|
| committer | John Hodge <tpg@mutabah.net> | 2016-03-13 13:17:22 +0800 |
| commit | 5c2691b60c870f4669ba0b8e7ecc593f64a4265b (patch) | |
| tree | f69f01d694f5703a8c689abec70663ce626c49f3 /src/include | |
| parent | 451a3b9ee0b47dccffb17dbc1975214264aa7c87 (diff) | |
| download | mrust-5c2691b60c870f4669ba0b8e7ecc593f64a4265b.tar.gz | |
Expand - Fix use-after-free bug
Diffstat (limited to 'src/include')
| -rw-r--r-- | src/include/span.hpp | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/include/span.hpp b/src/include/span.hpp index 0a1033e4..e5dd8ccc 100644 --- a/src/include/span.hpp +++ b/src/include/span.hpp @@ -44,11 +44,7 @@ struct Span {} Span(const Span& x); Span(const Position& position); - Span(): - filename("")/*, - start_line(0), start_ofs(0), - end_line(0), end_ofs(0) // */ - {} + Span(); void bug(::std::function<void(::std::ostream&)> msg) const; void error(ErrorType tag, ::std::function<void(::std::ostream&)> msg) const; |
