Author: wyoung
Date: Tue Feb 20 13:17:32 2007
New Revision: 1423
URL: http://svn.gna.org/viewcvs/mysqlpp?rev=1423&view=rev
Log:
Fixed Connection copy ctor. It's based on code shared with the
assignemnt operator which does work for that operator, but the copy
ctor didn't set up the object sufficiently well before calling into
that code. As a result, it accessed as-yet uninitialized memory.
Now we're initializing that memory, so we don't have to change the
shared code.
Modified:
trunk/lib/connection.cpp
Modified: trunk/lib/connection.cpp
URL:
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/connection.cpp?rev=1423&r1=1422&r2=1423&view=diff
==============================================================================
--- trunk/lib/connection.cpp (original)
+++ trunk/lib/connection.cpp Tue Feb 20 13:17:32 2007
@@ -136,7 +136,8 @@
Connection::Connection(const Connection& other) :
OptionalExceptions(),
-Lockable(false)
+Lockable(false),
+is_connected_(false)
{
copy(other);
}
_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits