Douglas Harper's Etymology Dictionary
dog leg
"something bent like a dog's hind leg," 1703. Originally of a type of staircase.