A ministerial officer whose duty it is to take security in any undertaking provided for by this Code or by other statutes shall require the person offered as surety to make an affidavit of his qualifications, which affidavit may be made before such officer, and shall be endorsed upon or attached to the undertaking. The taking of such an affidavit shall not exempt the officer from any liability to which he might otherwise be subject for taking insufficient security.
R.L. 1910, § 5342.