<!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">2015-10-13 12:01:06 +0900 (Tue, 13 Oct 2015)</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/d910f1e68349c7a82f3a0f92ab367ab00e71ba11">d910f1e68349c7a82f3a0f92ab367ab00e71ba11</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">grn_pat: fix a bug that a variable may be used uninitialized

GitHub: <a href="https://github.com/groonga/groonga/issues/418">#418</a></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/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265f">lib/pat.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: lib/pat.c (+2 -2)</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/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL609">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL610">610</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL611">611</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL612">612</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL613">613</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL614">614</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</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/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL615">615</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL616">616</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL617">617</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL627">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL628">628</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL629">629</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL630">630</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL631">631</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL632">632</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL633">633</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fL634">634</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/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR609">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR610">610</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR611">611</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR612">612</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/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR613">613</a></span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR614">614</a></span>
<span class="diff-line-number-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR615">615</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR616">616</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR617">617</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR618">618</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR628">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR629">629</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR630">630</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR631">631</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/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR632">632</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR633">633</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/d910f1e68349c7a82f3a0f92ab367ab00e71ba11#diff-e8f58132837f95fac7913a81cae2265fR634">634</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">@@ -610,8 +610,9 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">_grn_pat_add(grn_ctx *ctx, grn_pat *pat, const uint8_t *key, uint32_t size, uint</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_id r, r0, *p0, *p1 = NULL;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   pat_node *rn, *rn0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   int c, c0 = -1, c1 = -1, len;</span>
<span class="diff-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre">-</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   uint32_t cache_id = 0;</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #dbffdb; color: #000000; display: block; white-space: pre">+  *new = 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (pat-&gt;cache) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     const uint8_t *p = key;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     uint32_t length = size;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -628,7 +629,6 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">_grn_pat_add(grn_ctx *ctx, grn_pat *pat, const uint8_t *key, uint32_t size, uint</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffdddd; color: #000000; display: block; white-space: pre">-  *new = 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   len = (int)size * 16;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   PAT_AT(pat, 0, rn0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   p0 = &amp;rn0-&gt;lr[1];</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>