--- rpm-5.4.7/lib/rpmds.c.ds_stat~ 2012-03-13 19:42:38.344711524 +0100 +++ rpm-5.4.7/lib/rpmds.c 2012-03-13 19:42:47.633723723 +0100 @@ -2961,6 +2961,8 @@ static char *find_elf_interpreter(GElf_E size_t shstrndx; if (filename) { + if (!*filename) + return NULL; if (!(fp = fopen(filename, "r"))) { perror(filename); return NULL;