mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
Make sure we erase previous buffer values.
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@670 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
f326ffa70d
commit
f68f920814
1 changed files with 1 additions and 0 deletions
|
|
@ -141,6 +141,7 @@ void payload_type_destroy(PayloadType *pt)
|
|||
**/
|
||||
bool_t fmtp_get_value(const char *fmtp, const char *param_name, char *result, size_t result_len){
|
||||
const char *pos=strstr(fmtp,param_name);
|
||||
memset(result, '\0', result_len);
|
||||
if (pos){
|
||||
const char *equal=strchr(pos,'=');
|
||||
if (equal){
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue