core: avoid null pointer reference warning

Issue #3022
This commit is contained in:
Alexander Boettcher
2018-10-30 08:52:43 +01:00
committed by Norman Feske
parent 8db02b0a39
commit 7536b665f1
15 changed files with 32 additions and 33 deletions

View File

@ -44,7 +44,7 @@ namespace Genode {
i = cap_map()->insert(local_name, Fiasco::PARENT_CAP);
}
return reinterpret_cap_cast<Parent>(Native_capability(*i));
return reinterpret_cap_cast<Parent>(Native_capability(i));
}
}