r20893 by craig -

scribus-commit scribus-commit at lists.scribus.net
Tue Feb 2 23:17:55 UTC 2016


Author: craig
Date: Tue Feb  2 23:17:55 2016
New Revision: 20893

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20893
Log:
coverity #1350140: dereference after null check

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20893&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Tue Feb  2 23:17:55 2016
@@ -16664,7 +16664,7 @@
 								CharStyle emptyCS;
 								item->itemText.setCharStyle(pos, 1, emptyCS);
 							}
-							if (mark->getString() != prefixStr)
+							if (mark && mark->getString() != prefixStr)
 							{
 								mark->setString(prefixStr);
 								item->invalid = true;




More information about the scribus-commit mailing list