Fix uninitialized variables

This commit is contained in:
Jonas Kvinge
2021-03-26 21:30:13 +01:00
parent 8a39a43ad5
commit 14fb647647
27 changed files with 64 additions and 65 deletions

View File

@@ -134,8 +134,8 @@ void MoodbarPipeline::Start() {
void MoodbarPipeline::ReportError(GstMessage *msg) {
GError *error;
gchar *debugs;
GError *error = nullptr;
gchar *debugs = nullptr;
gst_message_parse_error(msg, &error, &debugs);
QString message = QString::fromLocal8Bit(error->message);

View File

@@ -136,7 +136,7 @@ void MoodbarRenderer::Render(const ColorVector &colors, QPainter *p, const QRect
// Draw the actual moodbar.
for (int x = 0; x < rect.width(); x++) {
int h, s, v;
int h = 0, s = 0, v = 0;
screen_colors[x].getHsv(&h, &s, &v);
for (int y = 0; y <= rect.height() / 2; y++) {