<!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">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2018-09-11 11:09:57 +0900 (Tue, 11 Sep 2018)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be">13348977f54fb5f641b244bf5201b91568cd24be</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, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">TokenMecab: add missing error check</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/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2">plugins/tokenizers/mecab.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, "Liberation Mono", 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: plugins/tokenizers/mecab.c (+4 -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, "Liberation Mono", 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/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2L796">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2L797">797</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2L798">798</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2L799">799</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/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2L800">800</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2L801">801</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2L802">802</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2L803">803</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R796">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R797">797</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R798">798</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R799">799</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R800">800</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R801">801</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R802">802</a></span>
<span class="diff-line-number-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R803">803</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R804">804</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R805">805</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/13348977f54fb5f641b244bf5201b91568cd24be#diff-95217a208a4d5d3ff78d01fed2902ba2R806">806</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", 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">@@ -797,7 +797,10 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">mecab_next_default_format(grn_ctx *ctx,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_token_set_data(ctx, token, surface, surface_length);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_tokenizer_status status;</span>
<span class="diff-deleted" style="background-color: #ffecec; color: #000000; display: block; white-space: pre">- if (tokenizer->next == tokenizer->end) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ if (surface_length == 0) {</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ /* Error */</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ status = GRN_TOKEN_LAST;</span>
<span class="diff-added" style="background-color: #eaffea; color: #000000; display: block; white-space: pre">+ } else if (tokenizer->next == tokenizer->end) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (tokenizer->loose.need) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> tokenizer->loose.ing = GRN_TRUE;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> status = GRN_TOKEN_CONTINUE;</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>