mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-08 02:48:29 +00:00
change strdupa to ast_strdupa (bug #2988)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4396 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -9128,7 +9128,7 @@ static int sip_getheader(struct ast_channel *chan, void *data)
|
||||
struct sip_pvt *p;
|
||||
char *argv, *varname = NULL, *header = NULL, *content;
|
||||
|
||||
argv = strdupa(data);
|
||||
argv = ast_strdupa(data);
|
||||
if (!argv) {
|
||||
ast_log(LOG_DEBUG, "Memory allocation failed\n");
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user