mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-04-20 15:25:57 -04:00
gui: handlerichtext: attempt to silence valgrind for qimage
"Conditional jump or move depends on uninitialised value"
This commit is contained in:
parent
c567810841
commit
826b097040
@ -1210,7 +1210,7 @@ QString RsHtml::toHtml(QString text, bool realHtml)
|
||||
/** Loads image and converts image to embedded image HTML fragment **/
|
||||
bool RsHtml::makeEmbeddedImage(const QString &fileName, QString &embeddedImage, const int maxPixels, const int maxBytes)
|
||||
{
|
||||
QImage image;
|
||||
QImage image {};
|
||||
|
||||
if (image.load (fileName) == false) {
|
||||
fprintf (stderr, "RsHtml::makeEmbeddedImage() - image \"%s\" can't be load\n", fileName.toLatin1().constData());
|
||||
|
Loading…
x
Reference in New Issue
Block a user