Initialize num properly.

PR#3289
PR#3345
1 file changed