<blockquote>
<p>But or not I think setting a variable to a default is a good thing.</p>
</blockquote>
<p>I haven't done a proper survey, but I'd wager if we did, we'd find hundreds if not thousands of uninitialized variables in Geany and GP's code.</p>
<blockquote>
<p>there is nothing to tell cppcheck that argument 2 is an out</p>
</blockquote>
<p>If it did proper analysis (ie. look into callee) it would see it's passed to <code>memcpy</code> and fully written.</p>
<p>In any case, I'm fine with this PR if it shuts up <code>cppcheck</code>; this isn't performance critical in anyway, and it doesn't affect readability.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany-plugins/pull/916?email_source=notifications&email_token=AAIOWJYCMG5UCMFCLHGQ3YLQMZ4JBA5CNFSM4I47R66KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJ33CI#issuecomment-538164617">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ7CSNWSZSFADFPZL6DQMZ4JBANCNFSM4I47R66A">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ4YOVFRCDSVVWGC6DTQMZ4JBA5CNFSM4I47R66KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJ33CI.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany-plugins/pull/916?email_source=notifications\u0026email_token=AAIOWJYCMG5UCMFCLHGQ3YLQMZ4JBA5CNFSM4I47R66KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJ33CI#issuecomment-538164617",
"url": "https://github.com/geany/geany-plugins/pull/916?email_source=notifications\u0026email_token=AAIOWJYCMG5UCMFCLHGQ3YLQMZ4JBA5CNFSM4I47R66KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAJ33CI#issuecomment-538164617",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>