Avoid double-initialization of a local variable.
Note that the previous code was not wrong. It declared a local variable and it read a line (containing headers). But these are two distinct things, and doing them on one line confused the code analyzer. Splitting them is just fine.
Please register or sign in to comment