shithub: riscv

Download patch

ref: a87c9cfc6ccd15814d0d59f7d20432fa97dc53eb
parent: 17136370d8fa16697e8e5fce8ae65c67197f4438
author: cinap_lenrek <[email protected]>
date: Thu Mar 5 15:46:01 EST 2020

devproc: fix syscalltrace read for ratrace

--- a/sys/src/9/port/devproc.c
+++ b/sys/src/9/port/devproc.c
@@ -1119,9 +1119,10 @@
 		goto statbufread;
 
 	case Qsyscall:
-		n = 0;
 		if(p->syscalltrace != nil)
 			n = readstr(offset, va, n, p->syscalltrace);
+		else
+			n = 0;
 		break;
 
 	case Qnote: