Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bummer, have to strdup value
authorsuter <frederic.suter@cc.in2p3.fr>
Thu, 11 Jul 2013 09:02:13 +0000 (11:02 +0200)
committersuter <frederic.suter@cc.in2p3.fr>
Thu, 11 Jul 2013 09:20:42 +0000 (11:20 +0200)
src/surf/storage.c

index 0c00d18..ce0528e 100644 (file)
@@ -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);