This website works better with JavaScript.
Home
Help
Register
Sign In
pEp.foundation
/
pEpEngine
Watch
14
Star
1
Fork
13
Code
Issues
Pull Requests
2
Releases
452
Wiki
Activity
Browse Source
assert without if
doc_update_sequoia
Krista Grothoff
6 years ago
parent
91a8a2e9db
commit
7454aac08a
1 changed files
with
5 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+5
-1
src/stringpair.c
+ 5
- 1
src/stringpair.c
View File
@ -11,8 +11,12 @@ DYNAMIC_API stringpair_t * new_stringpair(const char *key, const char *value)
stringpair_t
*
pair
=
NULL
;
assert
(
key
)
;
assert
(
value
)
,
assert
(
value
)
;
if
(
!
key
|
|
!
value
)
{
return
NULL
;
}
pair
=
calloc
(
1
,
sizeof
(
stringpair_t
)
)
;
assert
(
pair
)
;
if
(
pair
=
=
NULL
)
Write
Preview
Loading…
Cancel
Save