es->p_dec is obviously non-NULL when the loop starts, and the loop cannot change the value.
Attach a file by drag & drop or click to upload