<p dir="auto">Related to <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1196097111" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/3151" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/3151/hovercard" href="https://github.com/geany/geany/issues/3151">#3151</a> and <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="1193776749" data-permission-text="Title is private" data-url="https://github.com/geany/geany/issues/3149" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/3149/hovercard" href="https://github.com/geany/geany/issues/3149">#3149</a>.</p>
<p dir="auto">The <code>NULL</code> check in <code>vte_send_cmd()</code> is just for feeling more safe, the main change is to consider <code>vc->send_cmd_prefix</code> being <code>NULL</code> when constructing the command to be executed when we want to change the directory in the VTE.<br>
This should not happen but it might.</p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/geany/geany/pull/3153'>https://github.com/geany/geany/pull/3153</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/geany/geany/pull/3153/commits/fc825cb74da5bf16202a01ee15f8fcb1a6764837" class="commit-link">fc825cb</a>  VTE: Fix crash when "send_cmd_prefix" is NULL</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/geany/geany/pull/3153/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/geany/geany/pull/3153/files#diff-908b6ff12f2e817d51e8788238d28bdf3f547b4c6fb90dfc132820f525e8cf6c">src/vte.c</a>
    (5)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/geany/geany/pull/3153.patch'>https://github.com/geany/geany/pull/3153.patch</a></li>
  <li><a href='https://github.com/geany/geany/pull/3153.diff'>https://github.com/geany/geany/pull/3153.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/geany/geany/pull/3153">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2KDLV74C4VSCJZ33TVD4ZVLANCNFSM5S2MJCUQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAIOWJ7ILD6MECJCRJI5OLLVD4ZVLA5CNFSM5S2MJCU2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4R2Q3QBQ.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><geany/geany/pull/3153</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/pull/3153",
"url": "https://github.com/geany/geany/pull/3153",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>