r20886 by jghali -
scribus-commit
scribus-commit at lists.scribus.net
Tue Feb 2 21:54:46 UTC 2016
Author: jghali
Date: Tue Feb 2 21:54:46 2016
New Revision: 20886
URL: http://scribus.net/websvn/listing.php?repname=Scribus&sc=1&rev=20886
Log:
coverity #1350055: unchecked return value
Modified:
trunk/Scribus/scribus/ui/prefs_spelling.cpp
Modified: trunk/Scribus/scribus/ui/prefs_spelling.cpp
URL: http://scribus.net/websvn/diff.php?repname=Scribus&rev=20886&path=/trunk/Scribus/scribus/ui/prefs_spelling.cpp
==============================================================================
--- trunk/Scribus/scribus/ui/prefs_spelling.cpp (original)
+++ trunk/Scribus/scribus/ui/prefs_spelling.cpp Tue Feb 2 21:54:46 2016
@@ -238,7 +238,8 @@
QFile dataFile(availDictsXMLDataFile);
if (!dataFile.exists())
return;
- dataFile.open(QIODevice::ReadOnly);
+ if (!dataFile.open(QIODevice::ReadOnly))
+ return;
QTextStream ts(&dataFile);
ts.setCodec(QTextCodec::codecForName("UTF-8"));
QString errorMsg;
More information about the scribus-commit
mailing list