aboutsummaryrefslogtreecommitdiff
path: root/src/Thorns.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/Thorns.c')
-rw-r--r--src/Thorns.c3
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);
}