What is meant by the phrase 'firing blanks'?

The first meaning could refer to firing a gun with blanks inside of it instead of bullets. The second meaning could refer to a man who is impotent in the bedroom.