I'm sure someone will post with an actual citation of the statute, but I believe that if you have a permit, it should be no problem. If you don't have a permit, then I suppose it may come down to how persuasive you can be when you say, "But officer / your honor, it was in my trunk..."