vere: don't crash when slogging during replay
We're not guaranteed to have the sog_f callback set when
_pier_on_lord_slog gets called, so we should make sure there's a
function there before we call it.
@@ -972,12 +972,22 @@ _pier_on_lord_slog(void* ptr_v, c3_w pri_w, u3_noun tan)
u3C.stderr_log_f(tan_c);
c3_free(tan_c);
+ if ( 0 != pir_u->sog_f ) {
pir_u->sog_f(pir_u->sop_p, pri_w, tan);
}
+ else {
+ u3z(tan);
+ }
+ }
else {
u3_pier_tank(0, pri_w, u3k(tan));
+ if ( 0 != pir_u->sog_f ) {
pir_u->sog_f(pir_u->sop_p, pri_w, tan);
}
+ else {
+ u3z(tan);
+ }
+ }
}
/* _pier_on_lord_save(): worker (non-portable) snapshot complete.
