]> gitweb.ps.run Git - ps-cgit/commit
ui-shared: squelch compiler warning.
authorJason A. Donenfeld <Jason@zx2c4.com>
Wed, 20 Mar 2013 19:43:13 +0000 (20:43 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 20 Mar 2013 20:08:32 +0000 (21:08 +0100)
commit40e1d9b6177558bf4069c09ca6d8e3a682baa988
tree5c32c6ff69cbae17b61cca3d29ed7caf05f63801
parent7669f7f73082ce9eb1aef28495773492cc5bec90
ui-shared: squelch compiler warning.

Since tail is initialized to 0, we will never get a warning on the last
if statement, but recent gcc complains anyway. So, we initialize len as
well. Future gcc versions should be able to optimize this out anyway.
ui-shared.c