X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/e86565a320d9f2d0f1fc1ffef6e6a408fca3d984..6daf66cdee9baabe8732e3946758e9fe106c09b2:/src/surf/storage.c 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);