shithub: riscv

Download patch

ref: f0f2d452c873255dec4b3359b3f93e349be0f2c5
parent: 57b4f2b8e4c5037f726d71c71479a4561ab03137
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Sun Mar 24 11:24:25 EDT 2024

audio/mkplist: fix wrong pointer being dereferenced

--- a/sys/src/cmd/audio/zuke/mkplist.c
+++ b/sys/src/cmd/audio/zuke/mkplist.c
@@ -339,8 +339,8 @@
 		}
 	}
 	if(i == 0 && a->composer != nil || b->composer != nil){
-		if(a->composer == nil && a->composer != nil) return -1;
-		if(a->composer != nil && a->composer == nil) return 1;
+		if(a->composer == nil && b->composer != nil) return -1;
+		if(a->composer != nil && b->composer == nil) return 1;
 		if((x = cistrcmp(a->composer, b->composer)) != 0) return x;
 	}