Mr. and Mrs. Hayes brought this action to recover damages for personal injuries sustained when Mrs. Hayes fell into the grease pit of a gasoline service station operated by defendant Scavone and leased by him from defendant Richfield Oil Corporation. The jury returned a verdict for plaintiffs, judgment was entered accordingly, and defendant.Richfield has appealed.
The principal contentions are that the evidence is not sufficient to show that Richfield violated any duty which it owed to plaintiffs, that there was a material variance between pleadings and proof, that there were errors in the giving and refusal of instructions, and that plaintiffs were guilty of contributory negligence as a matter of law.
Mr. Hayes was a regular patron of thе station and had taken Mrs. Hayes there on several occasions. He purchased gasoline, oil and accessories from Scavone, and for approximately a year he had been parking his private car on the premises while making business trips in a truck which was kept at a storage place across the street. Scavone had told him he could leave his car at the station while making these trips as long as he continued to trade there. Hayes’ work *379 ing hours were irregular, and he made numerous overnight trips out of town, on some of which he was accompanied by Mrs. Hayes.
At about 2:30 a. m. on the night of the accident Mr. and Mrs. Hayes left their car at the rear of the station, intending to take a trip in their truck. No attendant was present at the time, and all lights had been turned off except two lights inside the station building. Mr. and Mrs. Hayes walked along one side of the building following a course which was partially illuminated by a street lamp. They crossed the street to where the truck was parked but discovered that it was not in operating condition. They then started to return to their car by a shorter route which led alоng the other side of the station building where the illumination was not as good and objects could be only vaguely distinguished. Mr. Hayes walked ahead of his wife, and in the darkness she fell into the grease pit. She testified that she was not aware of the existence of the pit, and her husband stated that he knew of its location but did not think about it prior to the accident.
The pit was parallel tо the rear wall of the station building, and it protruded on both sides about 5 feet beyond the extended lines of the building. It had concrete abutments 4 inches high at the ends and steel rails of the same height along the sides. There were sockets for guardrails, and the inventory attached to the lease listed chain guards for the pit, but no such protective devices were ever given to Sеavone, and none had been used at any time prior to the accident.
When the accident occurred the pit was in the same condition as it was when Seavone took possession under his lease from Richfield. The lease recited that the property was designed for the operation of a gasoline service station and required Seavone to use it “primarily for such purpose,” to make no material alterations without the lessor’s consent and to maintain the premises in good order. In the event of a failure to repair, the lessor reserved the right to enter and make repairs. The lease could be terminated by either party on 24 hours’ notice.
About once a week a Richfield employee сalled at the station, inspected the grounds and made suggestions with respect to methods of increasing sales. On two occasions, when equipment was in need of repairs, Seavone called the company’s maintenance service, which did the necessary *380 avovk. There ivas a large “Richfield” sign on the roof of the station and smaller ones on the pumps indiсating that Richfield gasoline was for sale. Scavone purchased all his gasoline and oil from Richfield but obtained other merchandise elsewhere. At different times he distributed advertising leaflets and courtesy cards offering free parking to patrons, and from time to time he permitted a number of customers to park their vehicles overnight. Scavone operated thе station on a 24-hour basis for a few months after the lease was made and then discontinued selling gasoline between midnight and 6 a. m. Thereafter, during those hours, the only lights left burning Avere those inside the station building.
The first question involves the sufficiency of the evidence. Plaintiffs urge that the judgment may be supported on any one of the following theories: (1) that Richfield retained joint control with the lessеe over the property and was liable for injuries resulting from dangerous conditions thereon; (2) that Richfield assumed the duty of inspecting the property but performed that duty in a negligent manner; and (3) that the premises were in a dangerous condition when leased, that they Avere leased for a purpose involving admission of the public, and that the lessor was under a duty to see that they were safe for the purpose intended. We are of the opinion that the evidence was not sufficient to show that Richfield retained joint control or that it assumed the duty of inspecting the property but we need not discuss these contentions in detail since we have concluded that there is ample evidence to support a recovery on the third thеory.
A lessor who leases property for a purpose involving the- admission of the public is under a duty- to see that it is safe for the purposes intended and to exercise reasonable care to inspect and repair the property before possession is transferred so as to prevent any unreasonable risk of harm to the public who may enter.
(Burroughs
v.
Ben’s Auto Park,
Inc.,
Although the premises were in the same condition at the time of the accident as they were when possession was delivered to Scavone, Richfield argues that they became dangerous only because Scavone had turned off all the lights at midnight without putting up any protective device around the pit. We cannot say as a matter of law, however, that the premises were safe even when fully illuminated. As we have seen the grease pit was open and unguarded, and while the lease listed chains for the pit as part of the equipmеnt, and there were sockets for guardrails, no such means of protection were furnished to Scavone or placed in use prior to the accident. But if we should assume that the premises were safe when illuminated, there is nothing in the lease which required Scavone to. operate the station on a 24-hour basis or to keep it fully lighted throughout the night. In the absence of such requirements, the jury could have concluded that Richfield should reasonably have anticipated that Scavone might not wish to keep the station open day and night, that he might leave the lot dimly lighted when gasoline. was not being sold, and that customers might use the parking facilities when the station Avas not open for the sale of gasoline.
A more serious problem is presеnted by the Acriance betAveen the pleadings and proof. The complaint Avas framed on the theory that Richfield and Scavone were in joint control of the premises, and there Avas no allegation of the existence of a landlord and tenant relationship between them. It was alleged, hoAA'ever, that the injuries were caused by a dangerous condition on the premises and that the property *382 was used for purposes involving admission to the public. The existence of the lease was developed through plaintiffs’ examination of Seavone under section 2055 of the Code of Civil Procedure, and there was evidence that the premises were leased for use as a service station and were in the same cоndition at the time of the accident as when leased. In ruling on a motion for nonsuit, the court stated that the case involved the question of Richfield’s liability as lessor of property which was leased to be used for a public purpose. Richfield first objected that the court was going beyond the pleadings and then argued that the theory was not applicable to the fаcts. The same grounds were subsequently urged in support of Richfield’s motion for a directed verdict. Upon denial of the motion, Richfield offered an instruction, which was given, pertaining to the duties of a landlord under a lease of property to be used for a purpose involving admission of the public. It should be noted, however, that Richfield did not at any time concede that а cause of action based on this theory was properly presented by the pleadings, and the instruction was offered only because the court had taken the position that the matters covered thereby were within the issues.
A variance between the allegations of a pleading and the proof will not be deemed material unless it has actually misled the adverse party to his prejudice in maintaining his action or defense on the merits, and a variance may be disregarded where the action has been as fully and fairly tried on the merits as though the variance had not existed. (Code Civ. Proc., §
469; Chelini
v.
Nieri,
*383 It is next contended that there was error in the giving of certain instructions, and the first claim is that the court misstated the law relating to a lessor’s duty regarding property leased for a purpose involving admission of the public. The following instruction, requested by plaintiff, was modified as indicated: “When property is leased to be used for a public or semi-public purрose, or involving admission of the public, if at the time possession of the premises is delivered to the lessee to be held under the lease thus executed, a condition exists on the leased premises such as to make its intended use dangerous to other persons or their property, and if that condition then is known to the lessor, or if it then would be known to him in the exercise оf ordinary care, the lessor becomes liable to an invitee of the lessee for any injury suffered by such invitee and proximately caused by the unsafe condition (provided, of course, that the injured person is not guilty of contributory negligence). Whenever, by virtue of the terms of such a lease, the lessor has the right of re-entry before the lessee eemmenees possossien under a renewal ef the lease of under a new lease fee a tike purpose, the lessor’s duty is to exercise that right of re-entry for the purpose of inspecting the premises to the end of removing or preventing any such dangerous condition that reasonable inspection would disclose to him.”
The last sentence of the instruction, as requested, was based on the decision in
Burroughs
v.
Ben’s Auto Park, Inc.,
*384 The court also instructed the jury that where a lessor retains control of leased property, it has the duty of using reasоnable and ordinary care to keep the premises in a safe and suitable condition so that invitees of the tenant will not be unnecessarily or unreasonably exposed to danger. Since the evidence is not sufficient to show that Richfield retained joint control over the leased premises, this'instruction should not have been given. The jury was told, however, that under the tеrms of the lease Richfield retained no right to control the lighting of the premises and that the operation of the parking lot after the station was closed was not an activity which Richfield could control. This instruction tended to offset any possible harm which could have resulted from the challenged instruction, and, under all of the circumstances, we cannot say that therе was any miscarriage of justice.
Complaint is also made that the court should not have given the following instruction: “Even though a lessor is not bound to inspect the premises under the terms of the lease entered into with the tenant, if, despite this fact, he undertakes to make such inspection, he must exercise ordinary care in the making of such inspection.” It is argued that the instruction imposes upon a lessor a duty to remedy a dangerous condition which an inspection would reveal. The instruction, however, is not subject to that interpretation and imposes no such duty. Instead it sets forth one aspect of the general rule that a volunteer who undertakes to proceed affirmatively when he is not under a duty to do so must use reasonable care. (See Prosser on Torts [1941] pp. 194-197;
cf. Janofsky
v.
Garland,
The trial court properly refused to give instructions requested by Richfield which misstated the law relat- ' ing to the doctrine of assumption of risk. These instructions were to the effect that one assumes a risk “when he knows, or in the exercise of ordinary care would know, that a danger exists” and voluntarily places himself within the area of danger, and thаt, to bar recovery, plaintiff must have actual knowledge of the danger “or the conditions must be such that he would have such knowledge if he exercised ordinary care. ’ ’ The doctrine of assumption of risk is based on the theory that there has been a voluntary acceptance of a risk, and such acceptance, whether express or implied, requires knоwledge and appreciation of the risk. (See Rest.,
*385
Torts, § 893; Prosser on Torts [1941], pp. 377-386; 10 So.Cal.L.Rev., 67, 74.) Where the facts are such that the plaintiff must have had knowledge of the hazard, the situation is equivalent to actual knowledge, and there may be an assumption of risk; but where it merely appears that a person could or should have discovered the danger by the exerсise of ordinary care, the defense is not assumption of risk but contributory negligence. (See Prosser on Torts [1941], pp. 379-380, 400.) There are statements in
DeGraf
v.
Anglo California Nat. Bank,
Finally, Richfield contends that plaintiffs were guilty of contributory negligence as a matter of law. It is argued that Mr. Hayes, who knew of the location of the pit, was negligent in failing to warn his wife of its existence and that his negligence must be imputed to her. As to Mrs. Hayes, it is argued that she was negligent in proceeding over unfamiliar ground in the darkness instead of returning to the car over the better lighted route by which they had left the premises. • The question of contributory negligence, however, was one of fact for the jury, and we cannot say that either plaintiff was negligent as a matter of law. Under the evidence the jury could have concluded that Mr. Hayes was not negligent in failing to keep in mind the existence of the pit or in failing to warn his wife. It could also have found thаt Mrs. Hayes was not aware of the hazard and did not act unreasonably in assuming that there was nothing of a dangerous character on the premises. (See
Neel
v.
Mannings, Inc.,
The judgment is affirmed.
Shenk, J., Edmonds, J., Carter, J., Traynor, J., and Spence, J., concurred.
Appellant’s petition for a rehearing was denied March 6, 1952. Schauer, J., did not participate therein.
