Howdy Pard!!
The scene you are referring to, is from the 1956 film, Red Sundown with Rory Calhoun, Martha Hyer and Dean Jagger. Leo.G.Gordon played the bad guy (as always) and it was Rory Calhoun that saved another gunslinger wandering in the desert. After killing a member of Gordon's gang, they hid out in an abandoned shack. After being shot in the gut and the shack being set on fire, the wounded gunslinger buried Rory using an old stovepipe, so that he could breathe and survive the fire. They even used some scenes from another Rory Calhoun film, Dawn At Socorro, in Red Sundown.
Ed