mirror of
https://github.com/mutouyun/cpp-ipc.git
synced 2025-12-06 08:46: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) {
|
||||
if (id == nullptr) {
|
||||
ipc::error("fail get_ref: invalid id (null)\n");
|
||||
return 0;
|
||||
}
|
||||
auto ii = static_cast<id_info_t*>(id);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user