static void CorruptSchema(InitData data, string obj, string extra) { Context ctx = data.Ctx; if (!ctx.MallocFailed && (ctx.Flags & Context.FLAG.RecoveryMode) == 0) { if (obj == null) { obj = "?"; } C._setstring(ref data.ErrMsg, ctx, "malformed database schema (%s)", obj); if (extra == null) { data.ErrMsg = C._mtagappendf(ctx, data.ErrMsg, "%s - %s", data.ErrMsg, extra); } data.RC = (ctx.MallocFailed ? RC.NOMEM : SysEx.CORRUPT_BKPT()); } }