Fix compiler warning

i is an integer, so int i defines i and set it to 0 to silence compiler warning