it does not understand that wrk_addstat() only returns true for tp != NULL.
Attach a file by drag & drop or click to upload