<!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 &lt;kou****@clear*****&gt;</dd>
      <dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
      <dd style="margin-left: 8.5em">2015-02-13 19:04:01 +0900 (Fri, 13 Feb 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/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea">b174157a0eb50440f781ff0608ef791f98d493ea</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">Suppress a warning

    ha_mroonga.cpp: In member function 'int ha_mroonga::drop_index(MRN_SHARE*, uint)':
    ha_mroonga.cpp:8595:26: warning: 'target_name_length' may be used uninitialized in this function [-Wmaybe-uninitialized]
                  ctx-&gt;errbuf);
                              ^</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/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#diff-0">ha_mroonga.cpp</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: ha_mroonga.cpp (+5 -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/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L1">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L4">4</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L5">5</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/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L7">7</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8">8</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8556">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8557">8557</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8558">8558</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8559">8559</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8560">8560</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/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8561">8561</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8562">8562</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8563">8563</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8571">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8572">8572</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8573">8573</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8574">8574</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/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8575">8575</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8576">8576</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0L8577">8577</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/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R1">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R2">2</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R3">3</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R4">4</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R5">5</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R6">6</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R7">7</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8">8</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8556">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8557">8557</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8558">8558</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8559">8559</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre">&nbsp;</span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8560">8560</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8561">8561</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8562">8562</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8563">8563</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8564">8564</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8572">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8573">8573</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8574">8574</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8575">8575</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8576">8576</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8577">8577</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8578">8578</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8579">8579</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/mroonga/mroonga/commit/b174157a0eb50440f781ff0608ef791f98d493ea#L0R8580">8580</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">@@ -2,7 +2,7 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> /*</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   Copyright(C) 2010 Tetsuro IKEDA</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   Copyright(C) 2010-2013 Kentoku SHIBA</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  Copyright(C) 2011-2014 Kouhei Sutou &lt;kou****@clear*****&gt;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  Copyright(C) 2011-2015 Kouhei Sutou &lt;kou****@clear*****&gt;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   Copyright(C) 2013 Kenji Maruyama &lt;mmmar****@gmail*****&gt;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre">   This library is free software; you can redistribute it and/or</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -8557,7 +8557,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_mroonga::drop_index(MRN_SHARE *target_share, uint key_index)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">     const char *table_name = target_share-&gt;index_table[key_index];</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     snprintf(target_name, GRN_TABLE_MAX_KEY_SIZE,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">              &quot;%s.%s&quot;, table_name, key_info[key_index].name);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-    grn_obj *index_column = grn_ctx_get(ctx, target_name, strlen(target_name));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    target_name_length = strlen(target_name);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    grn_obj *index_column = grn_ctx_get(ctx, target_name, target_name_length);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     if (index_column) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       rc = grn_obj_remove(ctx, index_column);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">     }</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -8572,6 +8573,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">int ha_mroonga::drop_index(MRN_SHARE *target_share, uint key_index)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">       target_name_length = grn_obj_name(ctx, index_table,</span>
<span class="diff-not-changed" style="display: block; white-space: pre">                                         target_name, GRN_TABLE_MAX_KEY_SIZE);</span>
<span class="diff-not-changed" style="display: block; white-space: pre">       rc = grn_obj_remove(ctx, index_table);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+    } else {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+      target_name_length = 0;</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>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>