Fix bug #338666: "Kalzium crashes when selecting >File >Export Data..."

Review Request #120219 - Created Sept. 15, 2014 and submitted

Information
Martin Walch
kalzium
master, KDE/4.14
338666
Reviewers
kdeedu

Problem is easy to spot with valgrind:
The private ExportDialog *m_exportDialog is not explicitely initialized
with 0, so later calling "if (!m_exportDialog)" may fail.

This accidentally slipped in with a header cleanup (commit d36687d50...)

Easy fix: initialize the pointer with 0 just like all the others.

BUG: 338666
FIXED-IN: 4.14.2

REVIEW: 120219

  • compiling
  • running
  • bug did not appear any more

(all on KDE 4.14.0)

Christoph Feck
Martin Walch
Review request changed

Status: Closed (submitted)

Loading...