mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-03 04:16:43 +00:00
Convert uses of strdup() to ast_strdup()
(issue #9983, eliel) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@69436 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -345,8 +345,8 @@ static int enum_callback(void *context, unsigned char *answer, int len, unsigned
|
||||
if ((p = ast_realloc(c->naptr_rrs, sizeof(*c->naptr_rrs) * (c->naptr_rrs_count + 1)))) {
|
||||
c->naptr_rrs = p;
|
||||
memcpy(&c->naptr_rrs[c->naptr_rrs_count].naptr, answer, sizeof(c->naptr_rrs->naptr));
|
||||
c->naptr_rrs[c->naptr_rrs_count].result = strdup(c->dst);
|
||||
c->naptr_rrs[c->naptr_rrs_count].tech = strdup(c->tech);
|
||||
c->naptr_rrs[c->naptr_rrs_count].result = ast_strdup(c->dst);
|
||||
c->naptr_rrs[c->naptr_rrs_count].tech = ast_strdup(c->tech);
|
||||
c->naptr_rrs[c->naptr_rrs_count].sort_pos = c->naptr_rrs_count;
|
||||
c->naptr_rrs_count++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user