cmd: fix ancient bug on consolefs flush
This commit is contained in:
parent
a8d42cecc9
commit
c45cffeaf5
|
@ -643,7 +643,7 @@ rversion(Fcall *req, Fcall *rep)
|
||||||
static int
|
static int
|
||||||
rflush(Fcall *req, Fcall *rep)
|
rflush(Fcall *req, Fcall *rep)
|
||||||
{
|
{
|
||||||
if(req->tag == outputread->tag){
|
if(outputread != nil && req->tag == outputread->tag){
|
||||||
free(outputread);
|
free(outputread);
|
||||||
outputread = nil;
|
outputread = nil;
|
||||||
}else
|
}else
|
||||||
|
|
Loading…
Reference in New Issue