ext2ed: fix potential NULL pointer dereference in dupstr()