summaryrefslogtreecommitdiff
path: root/src/include/span.hpp
diff options
context:
space:
mode:
authorJohn Hodge <tpg@mutabah.net>2016-03-13 13:17:22 +0800
committerJohn Hodge <tpg@mutabah.net>2016-03-13 13:17:22 +0800
commit5c2691b60c870f4669ba0b8e7ecc593f64a4265b (patch)
treef69f01d694f5703a8c689abec70663ce626c49f3 /src/include/span.hpp
parent451a3b9ee0b47dccffb17dbc1975214264aa7c87 (diff)
downloadmrust-5c2691b60c870f4669ba0b8e7ecc593f64a4265b.tar.gz
Expand - Fix use-after-free bug
Diffstat (limited to 'src/include/span.hpp')
-rw-r--r--src/include/span.hpp6
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;