1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-07 04:02:58 +03:00

Various code clean up

Submitted by: Christophe JAILLET <christophe jaillet wanadoo fr>
PR: 52893 


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1361801 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Stefan Fritsch
2012-07-15 21:14:00 +00:00
parent 9c6e2a2b62
commit 8c960a8c15
9 changed files with 19 additions and 36 deletions

View File

@@ -468,16 +468,15 @@ static const char *register_named_block_function_hook(const char *name,
{
cr_ctx ctx;
char buf[32];
lua_State *lvm;
char *tmp;
int rv;
ap_directive_t **current;
hack_section_baton *baton;
apr_snprintf(buf, sizeof(buf), "%u", cmd->config_file->line_number);
spec->file_name = apr_pstrcat(cmd->pool, cmd->config_file->name, ":",
buf, NULL);
spec->file_name = apr_psprintf(cmd->pool, "%s:%u",
cmd->config_file->name,
cmd->config_file->line_number);
if (function) {
spec->function_name = (char *) function;
}