Follow up to df2c3e1
* Resolved a compile warning.
This commit is contained in:
parent
eda85943f7
commit
94aa28aafc
@ -308,7 +308,7 @@ ERS *ers_new(uint32 size, const char *name, enum ERSOptions options)
|
|||||||
instance->VTable.destroy = ers_obj_destroy;
|
instance->VTable.destroy = ers_obj_destroy;
|
||||||
instance->VTable.chunk_size = ers_cache_size;
|
instance->VTable.chunk_size = ers_cache_size;
|
||||||
|
|
||||||
instance->Name = ( options & ERS_OPT_FREE_NAME ) ? aStrdup(name) : name;
|
instance->Name = ( options & ERS_OPT_FREE_NAME ) ? aStrdup(&name) : &name;
|
||||||
instance->Options = options;
|
instance->Options = options;
|
||||||
|
|
||||||
instance->Cache = ers_find_cache(size,instance->Options);
|
instance->Cache = ers_find_cache(size,instance->Options);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user