BUG: Intializing pointer should not be in a loop

Pointer initialization should be done before the loop. Otherwise, the attr is reassigned at each iteration, attr++ do not have any affect, so that only the first attribute is pushed many times in the vector m_Attributes #34
Merge pull request #35 from z0022myy/master

BUG: Intializing pointer should not be in a loop