shithub: zuke

Download patch

ref: d4575701671260d6a38ce2613c672fb79cd804f1
parent: 5980078f9cc3b03bb3796342520922a9ce842447
author: Sigrid Haflínudóttir <ftrvxmtrx@gmail.com>
date: Mon Jun 1 10:35:06 EDT 2020

mkplist: don't fail on no files at all

--- a/mkplist.c
+++ b/mkplist.c
@@ -30,6 +30,10 @@
 static Meta *
 newmeta(void)
 {
+	if(numall == 0){
+		free(all);
+		all = nil;
+	}
 	if(all == nil)
 		all = mallocz(sizeof(Meta), 1);
 	else if((numall & (numall-1)) == 0)