[Asterisk-code-review] main: Use ast strdup instead of strdup (asterisk[11])

Mark Michelson asteriskteam at digium.com
Fri Jan 8 14:46:42 CST 2016


Mark Michelson has uploaded a new change for review.

  https://gerrit.asterisk.org/1959

Change subject: main: Use ast_strdup instead of strdup
......................................................................

main: Use ast_strdup instead of strdup

Fix compile error in main/utils.c because strdup was used in dummy_start

Change-Id: Id61a6cf4f3cbf235450441e10e7da101a6335793
---
M main/utils.c
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.asterisk.org:29418/asterisk refs/changes/59/1959/1

diff --git a/main/utils.c b/main/utils.c
index 8c239d5..bf8ecb7 100644
--- a/main/utils.c
+++ b/main/utils.c
@@ -1199,7 +1199,7 @@
 		return NULL;
 
 	lock_info->thread_id = pthread_self();
-	lock_info->thread_name = strdup(a.name);
+	lock_info->thread_name = ast_strdup(a.name);
 
 	pthread_mutexattr_init(&mutex_attr);
 	pthread_mutexattr_settype(&mutex_attr, AST_MUTEX_KIND);

-- 
To view, visit https://gerrit.asterisk.org/1959
To unsubscribe, visit https://gerrit.asterisk.org/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Id61a6cf4f3cbf235450441e10e7da101a6335793
Gerrit-PatchSet: 1
Gerrit-Project: asterisk
Gerrit-Branch: 11
Gerrit-Owner: Mark Michelson <mmichelson at digium.com>
Gerrit-Reviewer: Diederik de Groot <dkgroot at talon.nl>



More information about the asterisk-code-review mailing list