"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "libpromises/policy.c" between
cfengine-3.15.3.tar.gz and cfengine-3.15.4.tar.gz

About: CFEngine is a configuration management system for configuring and maintaining Unix-like computers (using an own high level policy language). Community version.

policy.c  (cfengine-3.15.3):policy.c  (cfengine-3.15.4)
skipping to change at line 431 skipping to change at line 431
result->policy_files_hashes = b->policy_files_hashes; result->policy_files_hashes = b->policy_files_hashes;
b->policy_files_hashes = NULL; b->policy_files_hashes = NULL;
} }
else else
{ {
result->policy_files_hashes = NULL; result->policy_files_hashes = NULL;
} }
if (extra_hashes != NULL) if (extra_hashes != NULL)
{ {
MapIterator it = MapIteratorInit((Map*) extra_hashes); MapIterator it = MapIteratorInit(extra_hashes->impl);
MapKeyValue *item; MapKeyValue *item;
while ((item = MapIteratorNext(&it)) != NULL) while ((item = MapIteratorNext(&it)) != NULL)
{ {
/* Move data and duplicate just the keys (which are always owned by /* Move data and duplicate just the keys (which are always owned by
the map). */ the map). */
StringMapInsert(result->policy_files_hashes, StringMapInsert(result->policy_files_hashes,
xstrdup((char*) item->key), (char*) item->value); xstrdup((char*) item->key), (char*) item->value);
} }
/* Destroy only the map and the keys, data was moved. */ /* Destroy only the map and the keys, data was moved. */
StringMapSoftDestroy(extra_hashes); StringMapSoftDestroy(extra_hashes);
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)