if (num_points < 0)\n{\n\t// maybe some error message\n\treturn;\n}
I know the author was just trying to save space, but masking errors is actually much more evil than ignoring them.