Author: wyoung
Date: Mon Jan 21 19:56:14 2008
New Revision: 2125

URL: http://svn.gna.org/viewcvs/mysqlpp?rev=2125&view=rev
Log:
Removed a pointless test for null pointer after we've already
dereferenced the pointer.  Fix suggested by Jonathan Wakely.

Modified:
    trunk/lib/mystring.h

Modified: trunk/lib/mystring.h
URL: 
http://svn.gna.org/viewcvs/mysqlpp/trunk/lib/mystring.h?rev=2125&r1=2124&r2=2125&view=diff
==============================================================================
--- trunk/lib/mystring.h (original)
+++ trunk/lib/mystring.h Mon Jan 21 19:56:14 2008
@@ -316,7 +316,7 @@
                                for (; *end == '0'; ++end) ;
                        }
                        
-                       if (*end != '\0' && end != 0) {
+                       if (*end != '\0') {
                                throw BadConversion(typeid(Type).name(), data(),
                                                end - str, len);
                        }


_______________________________________________
Mysqlpp-commits mailing list
[email protected]
https://mail.gna.org/listinfo/mysqlpp-commits

Reply via email to