~neon/print-manager/master

Viewing all changes in revision 589.

  • Committer: Michael Pyne
  • Date: 2016-05-05 02:46:40 UTC
  • Revision ID: git-v1:be119c0f5cd3f404586371f616b46f0ba3f55442
Avoid using uninitialized tempfile buffer.

If the PPD filename were null then we wouldn't fill in the tempfile
buffer and since we don't bail out early we'd later try to unlink
whatever file might be named by bytes in that buffer. Caught by
Coverity, CID 1335203

Also, the filename checks should use QString::isEmpty instead of
QString::isNull, given the logic of the relevant checks.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: