mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-12 11:10:07 +00:00
Bail out if convW2M(...) indicates failure.
This commit is contained in:
parent
d92ac2d1b4
commit
07b24459ea
1 changed files with 2 additions and 1 deletions
|
@ -207,7 +207,8 @@ startrpc(int type)
|
|||
Wsysmsg w;
|
||||
|
||||
w.type = type;
|
||||
convW2M(&w, buf, sizeof buf);
|
||||
if(convW2M(&w, buf, sizeof buf) == 0)
|
||||
return nil;
|
||||
return muxrpcstart(display->mux, buf);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue