[asterisk-commits] pabelanger: branch pabelanger/xmldoc r310049 - /team/pabelanger/xmldoc/main/
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Mar 8 12:56:59 CST 2011
Author: pabelanger
Date: Tue Mar 8 12:56:58 2011
New Revision: 310049
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=310049
Log:
Coding guidelines
Modified:
team/pabelanger/xmldoc/main/asterisk.c
Modified: team/pabelanger/xmldoc/main/asterisk.c
URL: http://svnview.digium.com/svn/asterisk/team/pabelanger/xmldoc/main/asterisk.c?view=diff&rev=310049&r1=310048&r2=310049
==============================================================================
--- team/pabelanger/xmldoc/main/asterisk.c (original)
+++ team/pabelanger/xmldoc/main/asterisk.c Tue Mar 8 12:56:58 2011
@@ -311,9 +311,10 @@
work = ast_strdupa(version);
work = ast_strip(ast_strip_quoted(work, "$", "$"));
version_length = strlen(work) + 1;
-
- if (!(new = ast_calloc(1, sizeof(*new) + version_length)))
+
+ if (!(new = ast_calloc(1, sizeof(*new) + version_length))) {
return;
+ }
new->file = file;
new->version = (char *) new + sizeof(*new);
More information about the asterisk-commits
mailing list