therneau / survival

Survival package for R
381 stars 104 forks source link

Initialize ctemp to prevent uninitialized value error #220

Closed MichaelChirico closed 1 year ago

MichaelChirico commented 1 year ago

Our compiler flagged this.

Actually, ctemp looks unused, so I'm wondering if it's needed at all.

therneau commented 1 year ago

You are right. I've now removed it in my source. The comment further up "G will be incorrect here, so don't compute it" is key, it's why I don't need to count censoring events.