Remember the basic principles of firearms safety, always keep muzzle in a safe direction, treat every firearm as if loaded at all times and keep your finger out of the trigger well unless you are firing the gun.
There is no such thing as an "accidental discharge", it is a negligent discharge. Anytime and every time you handle a firearm and it discharges it is our r. esponsibility. You can never claim it went off by accident, it is either negligence or wreckless actions if it would discharge unintentionally. You will be accountable should that happen so prevent that possibility.
Always carry your firearm in the proper holster which will keep it in a safe direction and cover the trigger access, Never use a pocket, backpack, bookbag or purse for a loaded weapon. Keep the shooting finger our of the trigger well to prevent bumping the trigger when you are subjected to a "startle reflex" or "postural disturbance". Startle reflex is when you flinch after being startled and postural disturbance is tripping, slipping, falling, or bumping in to something. Keep your shooting/ trigger finger along the frame of the firearm and only bring it in to the trigger well when you are actually on the threat or target and firing the weapon.
Stay Legal and stay safe!