<!DOCTYPE html>
<html>
  <head>
  </head>
  <body>
    <dl style="line-height: 1.5; margin-left: 2em">
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
      <dd style="margin-left: 8.5em">Susumu Yata &lt;susum****@gmail*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2018-02-09 12:49:28 +0900 (Fri, 09 Feb 2018)</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
      <dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974">fec6cc6147610dfaa64141c17074375124655974</a></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
      <dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Remove wcrtomb because memset seems to be enough to initialize mbstate_t

This change suppresses the following warning (gcc):
  groonga.c: In function ‘line_editor_fgets’:
  groonga.c:218:5: warning: ignoring return value of ‘wcrtomb’, declared with attribute warn_unused_result [-Wunused-result]
       wcrtomb(NULL, L&#39;\0&#39;, &amp;ps);
       ^</pre></dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
      <dd style="margin-left: 8.5em">
        <ul>
          <li><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145">src/groonga.c</a></li>
        </ul>
      </dd>
    </dl>

    <div class="diff-section" style="clear: both">
      <table style="border-collapse: collapse; border: 1px solid #aaa">
        <thead>
          <tr class="diff-header" style="border: 1px solid #aaa">
            <td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">  Modified: src/groonga.c (+0 -1)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
            </td>
          </tr>
        </thead>
        <tbody>
          <tr>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145L214">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145L215">215</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145L216">216</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145L217">217</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145L218">218</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145L219">219</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145L220">220</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145L221">221</a></span>
</pre>
            </th>
            <th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145R214">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145R215">215</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145R216">216</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145R217">217</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145R218">218</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145R219">219</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/fec6cc6147610dfaa64141c17074375124655974#diff-c331507c59756a6ada6edcf5407e7145R220">220</a></span>
</pre>
            </th>
            <td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, &quot;Liberation Mono&quot;, Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -215,7 +215,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">line_editor_fgets(grn_ctx *ctx, grn_obj *buf)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     mbstate_t ps;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     history_w(line_editor_history, &amp;line_editor_history_event, H_ENTER, line);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     memset(&amp;ps, 0, sizeof(ps));</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">-    wcrtomb(NULL, L&#39;\0&#39;, &amp;ps);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     for (i = 0; i &lt; nchar; i++) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       multibyte_len = wcrtomb(multibyte_buf, line[i], &amp;ps);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       if (multibyte_len == (size_t)-1) {</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>