When I was at Amritsar airport I was given a pretty long Salai from my Mama and it was quite sharp. THe guard took it out of my pocket and said use a smaller one next time lol but it depends who the guard person is checking you.. they could have an agenda or something.
my advice... if you don't absolutely need it with you don't put it in your wallet. Better safe than sorry.