A guarantor is not exonerated by the discharge of his principal by operation of law, without the intervention or omission of the creditor.

R.L.1910, § 1049.