- unified the 2 script context commands
- minor changes in hipadaba and ascon/devser
This commit is contained in:
@@ -914,7 +914,9 @@ static int calcDataLength(pHdb node, int testLength){
|
||||
/*============================= Property Functions ==========================*/
|
||||
void SetHdbProperty(pHdb node, char *key, char *value){
|
||||
if(node != NULL && key != NULL && node->properties != NULL){
|
||||
if(StringDictExists(node->properties, key)){
|
||||
if (value == NULL) {
|
||||
StringDictDelete(node->properties, key);
|
||||
} else if(StringDictExists(node->properties, key)){
|
||||
StringDictUpdate(node->properties,key,value);
|
||||
} else {
|
||||
StringDictAddPair(node->properties,key,value);
|
||||
|
||||
Reference in New Issue
Block a user