If you have an unconfirmed transaction while the fork happens, your transaction will most likely be available and soon confirmed on both chains. If for some reason your transaction doesn't get confirmed in one of the chains, and they were comming from another wallet that you control, you will just "receive the coins back" and be able to spend them again.