mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 03:20:57 +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:
@@ -515,7 +515,7 @@ static int speech_processing_sound(struct ast_channel *chan, void *data)
|
||||
speech->processing_sound = NULL;
|
||||
}
|
||||
|
||||
speech->processing_sound = strdup(data);
|
||||
speech->processing_sound = ast_strdup(data);
|
||||
|
||||
ast_module_user_remove(u);
|
||||
|
||||
@@ -747,8 +747,8 @@ static int speech_background(struct ast_channel *chan, void *data)
|
||||
speech->results = ast_calloc(1, sizeof(*speech->results));
|
||||
if (speech->results != NULL) {
|
||||
speech->results->score = 1000;
|
||||
speech->results->text = strdup(dtmf);
|
||||
speech->results->grammar = strdup("dtmf");
|
||||
speech->results->text = ast_strdup(dtmf);
|
||||
speech->results->grammar = ast_strdup("dtmf");
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user