More cleanup based on static analysis

https://github.com/fish-shell/fish-shell/issues/575
This commit is contained in:
ridiculousfish
2013-02-16 02:38:13 -08:00
parent dc54ec5b2b
commit 4416753df0
7 changed files with 47 additions and 64 deletions

View File

@@ -735,11 +735,10 @@ void reader_write_title()
proc_push_interactive(0);
if (exec_subshell(title, lst, false /* do not apply exit status */) != -1)
{
size_t i;
if (lst.size() > 0)
if (! lst.empty())
{
writestr(L"\x1b]0;");
for (i=0; i<lst.size(); i++)
for (size_t i=0; i<lst.size(); i++)
{
writestr(lst.at(i).c_str());
}