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;
|
Wsysmsg w;
|
||||||
|
|
||||||
w.type = type;
|
w.type = type;
|
||||||
convW2M(&w, buf, sizeof buf);
|
if(convW2M(&w, buf, sizeof buf) == 0)
|
||||||
|
return nil;
|
||||||
return muxrpcstart(display->mux, buf);
|
return muxrpcstart(display->mux, buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue