If the person is committed to prison, or is in custody of an officer on a criminal charge, by virtue of a warrant of commitment of a district judge, the person must not be discharged on the ground of any mere defect of form in the warrant of commitment.
N.D.C.C. § 32-22-18