Browse Source

png : Initialize image dimensions

Initialize the PNG image dimensions so a newly constructed instance starts
with defined width and height values before they are accessed.

Found by cppcheck (uninitMemberVar).

Signed-off-by: Robin Getz <rgetz503@gmail.com>
chirpmodem-v8.0.0
Robin Getz 2 months ago
parent
commit
fb5523f543
No known key found for this signature in database
GPG Key ID: 51C7231FFED0E060
  1. 4
      sdrbase/util/png.cpp

4
sdrbase/util/png.cpp

@ -22,7 +22,9 @@ @@ -22,7 +22,9 @@
#include <QBuffer>
#include <QFile>
PNG::PNG()
PNG::PNG() :
m_width(0),
m_height(0)
{
}

Loading…
Cancel
Save