Lots of pistols these days have a firing pin block that requires actual force on the trigger itself to allow the gun to fire. So it'd have to be a gun that doesn't have this, and it'd have to be one hell of a kick.
But given that this entire situation would only happen in the movies, I'll say it'll go off... and hit a nearby vehicle causing an explosion which sends you both flying away (not burned, just flying). Then when you both regain your composure you'll realize the gun is sitting in between you two and you'll both lunge for it at the same time. The assailant will barely wrestle it away from you and point it right at your face. He'll get a big grin on his face and maybe even start laughing as he begins to pull the trigger... but right before he does he gets a foot to the face knocking him out cold. Wondering where the hell that kick came from, you look up to see none other than Danny fucking Glover... who says "I'm too old for this shit"