Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
L
libzmq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
libzmq
Commits
692648de
Commit
692648de
authored
Jul 02, 2012
by
Martin Hurton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mtrie: Do not throw exception on allocation failure
parent
e471e5b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
mtrie.cpp
src/mtrie.cpp
+4
-2
No files found.
src/mtrie.cpp
View file @
692648de
...
@@ -72,8 +72,10 @@ bool zmq::mtrie_t::add_helper (unsigned char *prefix_, size_t size_,
...
@@ -72,8 +72,10 @@ bool zmq::mtrie_t::add_helper (unsigned char *prefix_, size_t size_,
// We are at the node corresponding to the prefix. We are done.
// We are at the node corresponding to the prefix. We are done.
if
(
!
size_
)
{
if
(
!
size_
)
{
bool
result
=
!
pipes
;
bool
result
=
!
pipes
;
if
(
!
pipes
)
if
(
!
pipes
)
{
pipes
=
new
pipes_t
;
pipes
=
new
(
std
::
nothrow
)
pipes_t
;
alloc_assert
(
pipes
);
}
pipes
->
insert
(
pipe_
);
pipes
->
insert
(
pipe_
);
return
result
;
return
result
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment