The opinion of the court was delivered by
If we should treat the sheriff as other than the principal in. the contract sued on, there would still seem to be sufficient, authority in the sheriff to prosecute the action under that section of the statute which provides that “a person with whom, or in whose name, a contract is made for the benefit of another, or a person expressly authorized by statute, may bring an action without joining with him the person for. whose benefit it is prosecuted.” (Civil Code, §28.) The bringing of an action in the name of an officer is in keeping with the theory and spirit of the code, as a multiplicity of suits is thereby avoided, and the rights of all concerned can be as fully protected as in separate actions; and so it has been said that “it would inevitably produce great confusion and clashing of suits to permit other persons beside the sheriff in their own names, to maintain suits against the sheriff’s vendees for breaches of their contracts made with him. It would also be inconsistent with every principle of analogy in the law.” (Adams v. Adams, supra.)
Objection was made to the action of the court in permitting the plaintiff to file a reply to defendant’s answer after the trial had commenced. The petition was filed on March 20, 1884, and an answer on March 31, 1884, and by consent the cause was tried at the succeeding term, beginning on April 1,1884. The granting of permission to amend or to file a pleading out of time is largely within the discretion of the court — a discretion which we think was properly exercised in this instance.
There are some other objections to the judgment, but they are not deemed of sufficient importance to require a notice here.. Finding no error in the record, the judgment of the court below will be affirmed.