mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 08:13:22 +00:00
use ast_strdup instead of strdup
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@20167 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -6307,10 +6307,10 @@ static int load_config(void)
|
|||||||
ast_copy_string(emailtitle,s,sizeof(emailtitle));
|
ast_copy_string(emailtitle,s,sizeof(emailtitle));
|
||||||
}
|
}
|
||||||
if ((s=ast_variable_retrieve(cfg, "general", "emailsubject")))
|
if ((s=ast_variable_retrieve(cfg, "general", "emailsubject")))
|
||||||
emailsubject = strdup(s);
|
emailsubject = ast_strdup(s);
|
||||||
if ((s=ast_variable_retrieve(cfg, "general", "emailbody"))) {
|
if ((s=ast_variable_retrieve(cfg, "general", "emailbody"))) {
|
||||||
char *tmpread, *tmpwrite;
|
char *tmpread, *tmpwrite;
|
||||||
emailbody = strdup(s);
|
emailbody = ast_strdup(s);
|
||||||
|
|
||||||
/* substitute strings \t and \n into the apropriate characters */
|
/* substitute strings \t and \n into the apropriate characters */
|
||||||
tmpread = tmpwrite = emailbody;
|
tmpread = tmpwrite = emailbody;
|
||||||
@@ -6332,10 +6332,10 @@ static int load_config(void)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ((s=ast_variable_retrieve(cfg, "general", "pagersubject")))
|
if ((s=ast_variable_retrieve(cfg, "general", "pagersubject")))
|
||||||
pagersubject = strdup(s);
|
pagersubject = ast_strdup(s);
|
||||||
if ((s=ast_variable_retrieve(cfg, "general", "pagerbody"))) {
|
if ((s=ast_variable_retrieve(cfg, "general", "pagerbody"))) {
|
||||||
char *tmpread, *tmpwrite;
|
char *tmpread, *tmpwrite;
|
||||||
pagerbody = strdup(s);
|
pagerbody = ast_strdup(s);
|
||||||
|
|
||||||
/* substitute strings \t and \n into the apropriate characters */
|
/* substitute strings \t and \n into the apropriate characters */
|
||||||
tmpread = tmpwrite = pagerbody;
|
tmpread = tmpwrite = pagerbody;
|
||||||
|
Reference in New Issue
Block a user