summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJonathon Jongsma <jonathon.jongsma@collabora.co.uk>2008-08-11 16:29:08 -0500
committerJonathon Jongsma <jonathon.jongsma@collabora.co.uk>2008-08-11 16:36:05 -0500
commit2b66ea33ce7c960e87027565648eacbe199d68d0 (patch)
tree860d3241a04464d7992bf2d6c794abd6fa0104ed
parentf631ee50a4e59babe3e4c07e9c59cbff471c1cd5 (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.cc2
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)
{
}