Protect against a NULL pointer dereference, and remove unused write to a variable.
Attach a file by drag & drop or click to upload