Missing variable values and mass assignments.

This code wouldn't take into account cases where a variable did not have a
value (because it could not be found).