Fix 'potentially uninitialized' warning on var