lint: 'nchunks' (line 185) may not have been initialized