coverity: fixed missing break in switch
coverity: uninitialized scalar variable
coverity: fixed unsigned compare against 0