From 6daf66cdee9baabe8732e3946758e9fe106c09b2 Mon Sep 17 00:00:00 2001 From: suter Date: Thu, 11 Jul 2013 11:02:13 +0200 Subject: [PATCH] bummer, have to strdup value --- src/surf/storage.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/surf/storage.c b/src/surf/storage.c index 0c00d1805c..ce0528e164 100644 --- a/src/surf/storage.c +++ b/src/surf/storage.c @@ -223,7 +223,7 @@ static void* storage_create_resource(const char* id, const char* model, storage->content = parse_storage_content((char*)content_name,&(storage->used_size)); storage->content_type = xbt_strdup(content_type); storage->size = storage_type->size; - storage->type_id = type_id; + storage->type_id = xbt_strdup(type_id); xbt_lib_set(storage_lib, id, SURF_STORAGE_LEVEL, storage); -- 2.20.1