<p></p>
<blockquote>
<p>Maybe restructure the widgets loop as a <code>for()</code> and cppcheck might recognise it better?</p>
</blockquote>
<p>Tried but didn't help and would be even worse as you first need to know the array size.<br>
<a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="723717176" data-permission-text="Title is private" data-url="https://github.com/geany/geany-plugins/issues/1017" data-hovercard-type="pull_request" data-hovercard-url="/geany/geany-plugins/pull/1017/hovercard" href="https://github.com/geany/geany-plugins/pull/1017">#1017</a> fixes the <code>cppcheck</code> warning which actually seems to be a false positive, <code>cppcheck</code> gets confused about the pointer dereferencing.</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/issues/1014#issuecomment-710785219">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJYGKQNYXGATJCGDENLSLFQ7RANCNFSM4SPYSHEA">unsubscribe</a>.<img src="https://github.com/notifications/beacon/AAIOWJZPIFAW64VU4FNNILLSLFQ7RA5CNFSM4SPYSHEKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOFJO3RQY.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/issues/1014#issuecomment-710785219",
"url": "https://github.com/geany/geany-plugins/issues/1014#issuecomment-710785219",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>