<!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">2013-06-11 17:50:22 +0900 (Tue, 11 Jun 2013)</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/3f8b8f56567f6faf9b17083a8608740ecd69e75c">3f8b8f56567f6faf9b17083a8608740ecd69e75c</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">clang: suppress a warning

Initialize variable explicitly.

    ii.c:2909:17: warning: variable 'dcn' is used uninitialized whenever '||'
          condition is true [-Wsometimes-uninitialized]
                if (!actual_chunk_size || !(rc = chunk_new(ctx, ii, &amp;dcn,...
                    ^~~~~~~~~~~~~~~~~~
    ii.c:2911:50: note: uninitialized use occurs here
                  fake_map2(ctx, ii-&gt;chunk, &amp;dw, dc, dcn, actual_chunk_size);
                                                     ^~~
    ii.c:2909:17: note: remove the '||' if its condition is always false
                if (!actual_chunk_size || !(rc = chunk_new(ctx, ii, &amp;dcn,...
                    ^~~~~~~~~~~~~~~~~~~~~
    ii.c:2886:30: note: initialize the variable 'dcn' to silence this warning
      uint32_t ds, pseg, scn, dcn;
                                 ^
                                  = 0</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/3f8b8f56567f6faf9b17083a8608740ecd69e75c#diff-0">lib/ii.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/ii.c (+1 -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/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0L2882">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0L2883">2883</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0L2884">2884</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0L2885">2885</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0L2886">2886</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/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0L2887">2887</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0L2888">2888</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0L2889">2889</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/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0R2882">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0R2883">2883</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0R2884">2884</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0R2885">2885</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/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0R2886">2886</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0R2887">2887</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0R2888">2888</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3f8b8f56567f6faf9b17083a8608740ecd69e75c#L0R2889">2889</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">@@ -2883,7 +2883,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">buffer_flush(grn_ctx *ctx, grn_ii *ii, uint32_t seg, grn_hash *h)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre">   grn_io_win sw, dw;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   buffer *sb, *db = NULL;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   uint8_t *dc, *sc = NULL;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">-  uint32_t ds, pseg, scn, dcn;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+  uint32_t ds, pseg, scn, dcn = 0;</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if (ii-&gt;header-&gt;binfo[seg] == NOT_ASSIGNED) { return GRN_FILE_CORRUPT; }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   if ((ds = segment_get(ctx, ii)) == MAX_PSEG) { return GRN_NO_MEMORY_AVAILABLE; }</span>
<span class="diff-not-changed" style="display: block; white-space: pre">   pseg = buffer_open(ctx, ii, SEG2POS(seg, 0), NULL, &amp;sb);</span>
</pre>
            </td>
          </tr>
        </tbody>
      </table>
    </div>
  </body>
</html>