summaryrefslogtreecommitdiff
path: root/src/IO
diff options
context:
space:
mode:
authorschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2008-09-06 02:36:38 +0000
committerschnetter <schnetter@17b73243-c579-4c4c-a9d2-2d5706c11dac>2008-09-06 02:36:38 +0000
commit9576c556be269e473b5f67ac9b94052bd3c8c70e (patch)
tree6a5d4b57683b3f9eab0df890895dbd9a573a83fd /src/IO
parent548bc0139bf94909a4789d621e4c518d3a1825b3 (diff)
Make a copy of the I/O method name string when registering a new I/O
method. git-svn-id: http://svn.cactuscode.org/flesh/trunk@4503 17b73243-c579-4c4c-a9d2-2d5706c11dac
Diffstat (limited to 'src/IO')
-rw-r--r--src/IO/IOMethods.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/IO/IOMethods.c b/src/IO/IOMethods.c
index 07b1d2bc..9e123c55 100644
--- a/src/IO/IOMethods.c
+++ b/src/IO/IOMethods.c
@@ -124,7 +124,7 @@ int CCTKi_RegisterIOMethod (const char *thorn, const char *name)
/* Initialise the I/O method structure with dummy routines */
new_method->implementation = CCTK_ThornImplementation (thorn);
- new_method->name = name;
+ new_method->name = Util_Strdup (name);
new_method->OutputGH = DummyOutputGH;
new_method->OutputVarAs = DummyOutputVarAs;
new_method->TriggerOutput = DummyTriggerOutput;