r21718 by craig - Fix Coverity issue #1396757: Uninitialised mark variable

scribus-commit scribus-commit at lists.scribus.net
Sun Jan 8 17:13:04 UTC 2017


Author: craig
Date: Sun Jan  8 17:13:04 2017
New Revision: 21718

URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=21718
Log:
Fix Coverity issue #1396757: Uninitialised mark variable

Modified:
    trunk/Scribus/scribus/sctextstruct.h

Modified: trunk/Scribus/scribus/sctextstruct.h
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=21718&path=/trunk/Scribus/scribus/sctextstruct.h
==============================================================================
--- trunk/Scribus/scribus/sctextstruct.h	(original)
+++ trunk/Scribus/scribus/sctextstruct.h	Sun Jan  8 17:13:04 2017
@@ -92,8 +92,8 @@
 		MarkCE // deprecated
 	} ;
 
-	ExpansionPoint(ExpansionType t) : m_type(t), m_name() {}
-	ExpansionPoint(ExpansionType t, QString name) : m_type(t), m_name(name) {}
+	ExpansionPoint(ExpansionType t) : m_type(t), m_name(), m_mark(0) {}
+	ExpansionPoint(ExpansionType t, QString name) : m_type(t), m_name(name), m_mark(0) {}
 	ExpansionPoint(Mark* mrk) : m_type(MarkCE), m_name(), m_mark(mrk) {}
 
 	ExpansionType getType() const { return m_type; }




More information about the scribus-commit mailing list