summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <thb@documentfoundation.org>2014-04-10 19:35:15 +0200
committerThorsten Behrens <thb@documentfoundation.org>2014-04-10 19:37:08 +0200
commit23648e824fe41addb75a024374085bbc831b5d1b (patch)
tree9cc4130854a398068dfd5c37961a103abbf91d4f
parent6835d9f3074c1030be6632bdaff6c8398c696429 (diff)
Fix crash in ppd parser.
Only access pKey after we've set it. Change-Id: If0be3972c36b3da9d9a456fe3746224372a443dc
-rw-r--r--vcl/unx/generic/printer/ppdparser.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/vcl/unx/generic/printer/ppdparser.cxx b/vcl/unx/generic/printer/ppdparser.cxx
index 201f5e7b6e3d..5322c9866c1d 100644
--- a/vcl/unx/generic/printer/ppdparser.cxx
+++ b/vcl/unx/generic/printer/ppdparser.cxx
@@ -935,8 +935,10 @@ void PPDParser::parse( ::std::list< OString >& rLines )
OUString aUniKey(OStringToOUString(aKey, RTL_TEXTENCODING_MS_1252));
keyit = m_aKeys.find( aUniKey );
if(keyit != m_aKeys.end())
+ {
pKey = keyit->second;
- pKey->insertValue("Custom", eInvocation, true);
+ pKey->insertValue("Custom", eInvocation, true);
+ }
continue;
}