Itseez/opencv — pull request #353 by asmaloney (2013-01-28 21:56:04+00:00)
Title: Check pointers before using them in var init

Pointer arguments are being used to initialize vars right before the pointers are checked for NULL. Reorder code to avoid potential crashes.