mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-13 07:45:26 +00:00
don't assert then if
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15951 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
parent
a696e9279f
commit
7d6f7597d8
@ -1 +1 @@
|
||||
Tue Dec 1 16:41:39 CST 2009
|
||||
Mon Dec 14 15:09:49 EST 2009
|
||||
|
@ -63,7 +63,7 @@ const unsigned sdp_struct_align_ = sizeof(void *) - STRUCT_ALIGN_;
|
||||
|
||||
|
||||
#define STRUCT_DUP(p, dst, src) \
|
||||
ASSERT_STRUCT_ALIGN(p); assert(*(int*)(src) >= (int)sizeof(*src)); \
|
||||
ASSERT_STRUCT_ALIGN(p); \
|
||||
((*(int*)(src) >= (int)sizeof(*src) \
|
||||
? (dst = memcpy((p), (src), sizeof(*src))) \
|
||||
: (dst = memcpy((p), (src), *(int*)(src))), \
|
||||
|
Loading…
x
Reference in New Issue
Block a user