Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Reported an error if no valid entries are found in the indexfile
Baptiste Daroussin committed 10 years ago
commit 24a2471c083e24e716fc2cd24f37114acbd5daf0
parent e88dbee
1 file changed +4 -0
modified src/version.c
@@ -343,6 +343,10 @@ hash_indexfile(const char *indexfilename)
	free(line);
	fclose(indexfile);

+
	if (index == NULL)
+
		errx(EX_DATAERR, "No valid entries found in '%s'",
+
		    indexfilename);
+

	return (index);
}