Compiler Warning (level 4) C4701

local variable 'name' may be used without having been initialized

You may have used the local variable name without first assigning it a value, which could lead to unpredictable results.