mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-07 01:06:45 +08:00
ignore invalid id print in get_ref
This commit is contained in:
parent
754661c467
commit
1dc0419865
@ -83,7 +83,6 @@ id_t acquire(char const * name, std::size_t size, unsigned mode) {
|
|||||||
|
|
||||||
std::uint32_t get_ref(id_t id) {
|
std::uint32_t get_ref(id_t id) {
|
||||||
if (id == nullptr) {
|
if (id == nullptr) {
|
||||||
ipc::error("fail get_ref: invalid id (null)\n");
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
auto ii = static_cast<id_info_t*>(id);
|
auto ii = static_cast<id_info_t*>(id);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user