Skip to content

Commit

Permalink
[automated site update]
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Sep 22, 2024
1 parent 368a281 commit fb0efa8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion apidoc/html/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ <h3><a class="anchor" id="autotoc_md18"></a>
<div class="line"><span class="keywordflow">else</span> {</div>
<div class="line"> <span class="comment">// Set &#39;stringValue&#39; and dereference the value field in the RESP so it&#39;s not </span></div>
<div class="line"> <span class="comment">// destroyed with the RESP itself.</span></div>
<div class="line"> stringValue = r-&gt;<a class="code hl_variable" href="structRESP.html#a0f61d63b009d0880a89c843bd50d8d76">value</a>;</div>
<div class="line"> stringValue = (<span class="keywordtype">char</span> *) r-&gt;<a class="code hl_variable" href="structRESP.html#a0f61d63b009d0880a89c843bd50d8d76">value</a>;</div>
<div class="line"> r-&gt;<a class="code hl_variable" href="structRESP.html#a0f61d63b009d0880a89c843bd50d8d76">value</a> = NULL;</div>
<div class="line"> </div>
<div class="line"> <a class="code hl_function" href="redisx_8c.html#aa4e23a7454f7055711915ec430599011">redisxDestroyRESP</a>(r); <span class="comment">// The &#39;stringValue&#39; is still a valid pointer after! </span></div>
Expand Down
2 changes: 1 addition & 1 deletion doc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ as is (without making copies), e.g.:
else {
// Set 'stringValue' and dereference the value field in the RESP so it's not
// destroyed with the RESP itself.
stringValue = r->value;
stringValue = (char *) r->value;
r->value = NULL;
redisxDestroyRESP(r); // The 'stringValue' is still a valid pointer after!
Expand Down

0 comments on commit fb0efa8

Please sign in to comment.