How to duplicate empty lines in a file?

sed ‘/^$/ p’ < filename

Category: UNIX Interview Questions.