SF.net SVN: mahogany:[7582] trunk/M/src/mail/MimeDecode.cpp
[email protected] Sat, 05 Dec 2009 00:25:14 +0000
| Newsgroups | gmane.mail.mahogany.cvs |
|---|---|
| Message-ID | <[email protected]> |
Revision: 7582
http://mahogany.svn.sourceforge.net/mahogany/?rev=7582&view=rev
Author: vadz
Date: 2009-12-05 00:25:14 +0000 (Sat, 05 Dec 2009)
Log Message:
-----------
don't define invalid iterator (even if we never use it) as this results in an assert when using VC9 CRT
Modified Paths:
--------------
trunk/M/src/mail/MimeDecode.cpp
Modified: trunk/M/src/mail/MimeDecode.cpp
===================================================================
--- trunk/M/src/mail/MimeDecode.cpp 2009-12-05 00:18:49 UTC (rev 7581)
+++ trunk/M/src/mail/MimeDecode.cpp 2009-12-05 00:25:14 UTC (rev 7582)
@@ -159,6 +159,10 @@
String out,
space;
+ // we can't define a valid "last" iterator below for empty string
+ if ( in.empty() )
+ return String();
+
out.reserve(in.length());
for ( wxString::const_iterator p = in.begin(),
end = in.end(),
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
------------------------------------------------------------------------------
Join us December 9, 2009 for the Red Hat Virtual Experience,
a free event focused on virtualization and cloud computing.
Attend in-depth sessions from your desk. Your couch. Anywhere.
http://p.sf.net/sfu/redhat-sfdev2dev