diff options
author | slioch <slioch@eng-140.vyatta.com> | 2009-06-01 11:55:47 -0700 |
---|---|---|
committer | slioch <slioch@eng-140.vyatta.com> | 2009-06-01 11:55:47 -0700 |
commit | 2c22465441bbb7bdd40bf7a12bbdeb8390e32471 (patch) | |
tree | 31570f2b17660a5deb50fab55c1f894e7f298dae /src/common/unionfs.c | |
parent | 7fbebb1457fd831d73f27c0edce7ce027432d742 (diff) | |
download | vyatta-cfg-2c22465441bbb7bdd40bf7a12bbdeb8390e32471.tar.gz vyatta-cfg-2c22465441bbb7bdd40bf7a12bbdeb8390e32471.zip |
fix for bug 4451. preserve empty values on leaf nodes.
Diffstat (limited to 'src/common/unionfs.c')
-rw-r--r-- | src/common/unionfs.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/unionfs.c b/src/common/unionfs.c index b259b5d..24ff28f 100644 --- a/src/common/unionfs.c +++ b/src/common/unionfs.c @@ -980,8 +980,10 @@ get_term_data_values(GNode *node) data = (struct ValueData*)calloc(1, sizeof(struct ValueData)); if ((tok_str_active == NULL || tok_str_active[0] == NULL) && (tok_str_new == NULL || tok_str_new[0] == NULL)) { - // data->_state = K_NO_OP; - // g_datalist_set_data(&datalist, tok_str_active[0], data); + cp = malloc(MAX_LENGTH_DIR_PATH*sizeof(char)); + cp[0] = '\0'; + data->_state = ((struct VyattaNode*)node->parent->data)->_data._operation; + g_datalist_set_data(&datalist, cp, data); } else if (tok_str_active == NULL || tok_str_active[0] == NULL) { data->_state = K_CREATE_OP; |