Compiler Warning (level 4) C4701

Potentially uninitialized local variable 'name' used

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