Bail out if convW2M(...) indicates failure.

This commit is contained in:
Igor Böhm 2020-07-25 21:54:02 +02:00 committed by Dan Cross
parent d92ac2d1b4
commit 07b24459ea

View file

@ -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);
}