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
93194e7c
Commit
93194e7c
authored
May 30, 2018
by
Simon Giesecke
Committed by
Simon Giesecke
May 30, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Problem: non-portable memset
Solution: add dummy pointer meber to union instead
parent
9c8fde09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
address.cpp
src/address.cpp
+1
-1
address.hpp
src/address.hpp
+2
-0
No files found.
src/address.cpp
View file @
93194e7c
...
...
@@ -51,7 +51,7 @@ zmq::address_t::address_t (const std::string &protocol_,
address
(
address_
),
parent
(
parent_
)
{
memset
(
&
resolved
,
0
,
sizeof
resolved
)
;
resolved
.
dummy
=
NULL
;
}
zmq
::
address_t
::~
address_t
()
...
...
src/address.hpp
View file @
93194e7c
...
...
@@ -76,8 +76,10 @@ struct address_t
ctx_t
*
const
parent
;
// Protocol specific resolved address
// All members must be pointers to allow for consistent initialization
union
{
void
*
dummy
;
tcp_address_t
*
tcp_addr
;
udp_address_t
*
udp_addr
;
#if !defined ZMQ_HAVE_WINDOWS && !defined ZMQ_HAVE_OPENVMS \
...
...
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