]> git.sur5r.net Git - i3/i3/commit
Very minor issues found with statical analysis.
authorFernando Tarlá Cardoso Lemos <fernandotcl@gmail.com>
Fri, 25 Feb 2011 23:31:26 +0000 (20:31 -0300)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 28 Feb 2011 15:48:22 +0000 (16:48 +0100)
commitf4ec0bceff688877447b31a8101b690516207c61
treec1940f753282017e6d7c14ba103ff7d822b1caf1
parent9e0836608220242a2c2b745a0430a7c4b9e33ced
Very minor issues found with statical analysis.

The Clang Static Analyzer uncovered those issues:

- The variable "changed" in handlers.c is written to, but it's
  never read since that specific write, so the write is not
  necessary.

- In util.c, "tail" may be NULL. In that case, we shouldn't pass
  it to strlen because strlen's behavior is not defined when s is
  NULL.

- In util.c, "write_index" is incremented twice. It's never used
  anymore after being incremented once, so the second increment is
  not necessary.
src/handlers.c
src/util.c