pmbm: allow null out ptr

This commit is contained in:
Michael Scire 2019-06-28 15:18:38 -07:00
parent c50a32a3b7
commit 04fd5cfda2

View File

@ -797,7 +797,7 @@ Result pmbmGetBootMode(PmBootMode *out) {
rc = resp->result;
if (R_SUCCEEDED(rc)) {
if (R_SUCCEEDED(rc) && out) {
*out = (PmBootMode)resp->boot_mode;
}
}