diff options
author | swhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2004-04-16 11:42:08 +0000 |
---|---|---|
committer | swhite <swhite@1faa4e14-9dd3-4be0-9f0e-ffe519881164> | 2004-04-16 11:42:08 +0000 |
commit | 2985e4a0702f0e2b67a18be4d214ac8d2ad9be8a (patch) | |
tree | 72249479e780120aad98475dbd0f69ef48f86368 /src/Thorns.c | |
parent | 310f5363afe8ed31b6381ff002991d5c7cfa6d96 (diff) |
Addresses Cactus bug 907
Added ability to send HTTP Refresh header: HTTP_Send_OK_Refresh_Header
Added parameter HTTP::refresh_seconds
Made main content window to respond to refresh parameter setting
Also
Minor improvements to String module
Fixed variable decarations after executable code in a block.
git-svn-id: http://svn.cactuscode.org/arrangements/CactusConnect/HTTPD/trunk@193 1faa4e14-9dd3-4be0-9f0e-ffe519881164
Diffstat (limited to 'src/Thorns.c')
-rw-r--r-- | src/Thorns.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Thorns.c b/src/Thorns.c index 91a1a07..b7c8463 100644 --- a/src/Thorns.c +++ b/src/Thorns.c @@ -79,10 +79,11 @@ int HTTPi_RegisterThornPages(void) for (i = 0; i < CCTK_NumCompiledThorns (); i++) { const char *thorn = CCTK_CompiledThorn(i); + char *namecopy; sprintf(pagename,"/Thorns/%s", thorn); - char *namecopy = Util_Strdup(thorn); /*SW isn't this a memory leak?*/ + namecopy = Util_Strdup(thorn); /*SW isn't this a memory leak?*/ HTTP_RegisterPage(pagename, ThornPage, namecopy); } |