[asterisk-commits] qwell: branch qwell/system_registry r392764 - /team/qwell/system_registry/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Mon Jun 24 15:31:19 CDT 2013
Author: qwell
Date: Mon Jun 24 15:31:18 2013
New Revision: 392764
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=392764
Log:
Use RAII_VAR betterly.
Modified:
team/qwell/system_registry/main/manager_system.c
Modified: team/qwell/system_registry/main/manager_system.c
URL: http://svnview.digium.com/svn/asterisk/team/qwell/system_registry/main/manager_system.c?view=diff&rev=392764&r1=392763&r2=392764
==============================================================================
--- team/qwell/system_registry/main/manager_system.c (original)
+++ team/qwell/system_registry/main/manager_system.c Mon Jun 24 15:31:18 2013
@@ -70,9 +70,9 @@
const char *status;
const char *cause;
struct ast_json_payload *payload = stasis_message_data(message);
- RAII_VAR(struct ast_str *, cause_string, NULL, ast_free);
+ RAII_VAR(struct ast_str *, cause_string, ast_str_create(32), ast_free);
- if (!(cause_string = ast_str_create(32))) {
+ if (!cause_string) {
return;
}
More information about the asterisk-commits
mailing list