From 2b66ea33ce7c960e87027565648eacbe199d68d0 Mon Sep 17 00:00:00 2001 From: Jonathon Jongsma Date: Mon, 11 Aug 2008 16:29:08 -0500 Subject: Fix Cairo::logic_error error message Fix embarrassing mistake where the error string was being initialized with random data since the m_status member had not yet been initialized. --- cairomm/exception.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) { } -- cgit v1.2.3