Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Reported an error if no valid entries are found in the indexfile
Baptiste Daroussin committed 10 years ago
commit 24a2471c083e24e716fc2cd24f37114acbd5daf0
parent e88dbee05af290efb13dc95cdb01f5e6b42656f2
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);
}