shithub: riscv

Download patch

ref: 022087cdcdd39e7904f6970b54152f4aa30fc071
parent: 8f64e448545a11c1c0e0db8bef34c23d3c0e0ad7
author: cinap_lenrek <[email protected]>
date: Sat Mar 7 10:20:07 EST 2020

lib9p: fix typo

--- a/sys/src/lib9p/srv.c
+++ b/sys/src/lib9p/srv.c
@@ -810,8 +810,8 @@
 	fmtinstall('F', fcallfmt);
 
 	srv->spid = getpid();
-	memset(&s->sref, 0, sizeof(s->sref));
-	memset(&s->rref, 0, sizeof(s->rref));
+	memset(&srv->sref, 0, sizeof(srv->sref));
+	memset(&srv->rref, 0, sizeof(srv->rref));
 
 	if(srv->fpool == nil)
 		srv->fpool = allocfidpool(srv->destroyfid);