diff options
author | Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> | 2008-08-11 16:29:08 -0500 |
---|---|---|
committer | Jonathon Jongsma <jonathon.jongsma@collabora.co.uk> | 2008-08-11 16:36:05 -0500 |
commit | 2b66ea33ce7c960e87027565648eacbe199d68d0 (patch) | |
tree | 860d3241a04464d7992bf2d6c794abd6fa0104ed | |
parent | f631ee50a4e59babe3e4c07e9c59cbff471c1cd5 (diff) |
Fix Cairo::logic_error error messagecairomm-1.4
Fix embarrassing mistake where the error string was being initialized with
random data since the m_status member had not yet been initialized.
-rw-r--r-- | cairomm/exception.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cairomm/exception.cc b/cairomm/exception.cc index e4114bf..e389151 100644 --- a/cairomm/exception.cc +++ b/cairomm/exception.cc @@ -29,7 +29,7 @@ inline static const char* string_or_empty(const char* text) //TODO: Is it wise to assume that the string is ASCII, as expected by std::logic_error? logic_error::logic_error(ErrorStatus status) -: std::logic_error( string_or_empty(cairo_status_to_string((cairo_status_t)m_status)) ), +: std::logic_error( string_or_empty(cairo_status_to_string((cairo_status_t)status)) ), m_status(status) { } |