Index: res/res_agi.c
===================================================================
--- res/res_agi.c (revision 396164)
+++ res/res_agi.c (working copy)
@@ -3760,9 +3760,6 @@
AST_RWLIST_RDLOCK(&agi_commands);
AST_RWLIST_TRAVERSE(&agi_commands, command, list) {
-#ifdef AST_XML_DOCS
- char *stringptmp;
-#endif
char *tempstr, *stringp;
if (!command->cmda[0]) /* end ? */
@@ -3775,8 +3772,7 @@
fprintf(htmlfile, "
\n");
fprintf(htmlfile, "%s - %s | \n", fullcmd, command->summary);
#ifdef AST_XML_DOCS
- stringptmp = ast_xmldoc_printable(command->usage, 0);
- stringp = ast_strdup(stringptmp);
+ stringp = ast_xmldoc_printable(command->usage, 0);
#else
stringp = ast_strdup(command->usage);
#endif
@@ -3794,9 +3790,6 @@
fprintf(htmlfile, "\n");
fprintf(htmlfile, " |
\n\n");
ast_free(stringp);
-#ifdef AST_XML_DOCS
- ast_free(stringptmp);
-#endif
}
AST_RWLIST_UNLOCK(&agi_commands);
fprintf(htmlfile, "\n