Tbe complaint alleges tbat tbe plaintiff Ruffin entered into a contract witb ibe Black Mountain Railroad Company to build the road and deliver it free of all claims and liens, which be undertook to accomplish by making a contract of indemnity witb tbe Ocean Accident and Guarantee Corporation, and tbat this contract was “for tbe protection of tbe Black Mountain Railroad Company and for its benefit and witb full knowledge of tbe defendant tbat said insurance was for tbe benefit of tbe said Black Mountain Railroad Company.”
An injury having occurred to one of tbe workmen (Thomas Ruffin), who was known by tbe defendant to be tbe agent of tbe Black Mountain *637Railroad' Company, it become liable for tbe injured workman, and tbis action is brought to recover tbe loss incurred, wbicb further it is alleged has been paid by tbe owner under a compromise in an action brought therefor.
Tbe indemnity company knew that Ruffin was under contract to pay any judgment or just claims arising from such injuries as tbis, and wrote tbis policy to indemnify him. When tbe suit was brought tbe defendant took part in making tbe defense. It is immaterial that Ruffin was not a party to tbe action wbicb was brought by tbe injured employee directly against tbe plaintiff railroad company. Tbe injury was for tbe negligent use of explosives, and tbe railroad company, therefore, was not released from liability by reason of tbe fact that Ruffin was an independent contractor.
Upon tbe statement in tbe complaint, tbe demurrer was properly overruled. Tbe railroad company suffered the loss, Ruffin or Ruffin & Harris (of wbicb firm be was a partner) is responsible to tbe railroad company for tbe amount of said loss, and under bis indemnity is entitled to be protected in turn by tbe indemnity company, tbe defendant. If there are any defenses, they can be presented by tbe answer. It is immaterial that tbe indemnity was taken out in tbe name of Ruffin & Harris, for as one of tbe partnership be is responsible to tbe railroad company for tbe loss and can require tbe indemnity company to make tbe loss good. Tbe demurrer for misjoinder need not be discussed. If there are unnecessary parties plaintiff, they might object on account of tbe costs or fear of judgment against them, but it is no prejudice to tbe defendant.
Both tbe railroad company, ’ tbe beneficiary of tbe contract, wbicb claims to recover under tbe doctrine of Gorrell v. Water Co., 124 N. C., 328, and Ruffin, tbe obligee in tbe contract, are parties plaintiff, and as there can be but one recovery, it is a question between them and not a prejudice to tbe defendant. Nor can there be a misjoinder, for there is but one single cause of action, tbe injury to tbe employee and tbe responsibility of tbe defendant by reason of tbe contract of indemnity.
Affirmed.