shithub: riscv

Download patch

ref: 2f1a0685ea31bfa8da10bb077312451042c77324
parent: 81a19e0dc53e0c9b13c0c7e05e0d4f39af934832
author: cinap_lenrek <cinap_lenrek@localhost>
date: Tue Jun 28 00:19:33 EDT 2011

hgfs: cleanup

--- a/sys/src/cmd/hgfs/fs.c
+++ b/sys/src/cmd/hgfs/fs.c
@@ -51,7 +51,6 @@
 	rl = emalloc9p(sizeof(*rl));
 	memset(rl, 0, sizeof(*rl));
 	if(revlogopen(rl, path, OREAD) < 0){
-		fprint(2, "getrevlod %s: %r\n", path);
 		free(rl);
 		return nil;
 	}
--- a/sys/src/cmd/hgfs/revlog.c
+++ b/sys/src/cmd/hgfs/revlog.c
@@ -94,6 +94,7 @@
 	r->map = nil;
 	r->nmap = 0;
 	free(r->path);
+	r->path = nil;
 }
 
 uchar*