r22283 by craig -

scribus-commit scribus-commit at lists.scribus.net
Wed Dec 27 22:06:41 UTC 2017


Author: craig
Date: Wed Dec 27 22:06:41 2017
New Revision: 22283

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=22283
Log:
Fix coverity issue

Modified:
    trunk/Scribus/scribus/scribusdoc.cpp

Modified: trunk/Scribus/scribus/scribusdoc.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=22283&path=/trunk/Scribus/scribus/scribusdoc.cpp
==============================================================================
--- trunk/Scribus/scribus/scribusdoc.cpp	(original)
+++ trunk/Scribus/scribus/scribusdoc.cpp	Wed Dec 27 22:06:41 2017
@@ -16629,7 +16629,9 @@
 {
 	if (!numerations.contains(numName))
 		return;
-	NumStruct * numS = numerations.value(numName);
+	NumStruct* numS = numerations.value(numName);
+	if (!numS)
+		return;
 	if (level > numS->m_counters.count())
 		numS->m_counters.insert(level, number);
 	else




More information about the scribus-commit mailing list