From: suter Date: Thu, 11 Jul 2013 09:02:13 +0000 (+0200) Subject: bummer, have to strdup value X-Git-Tag: v3_9_90~163 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/6daf66cdee9baabe8732e3946758e9fe106c09b2 bummer, have to strdup value --- 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);