src/server/plugins/postgresql/pgtest.c

changeset 403
0f678595d497
parent 374
77506ec632a4
child 415
d938228c382e
equal deleted inserted replaced
402:712aca08da7f 403:0f678595d497
171 property->status = status_code; 171 property->status = status_code;
172 xmlNode *value = n->children; 172 xmlNode *value = n->children;
173 if(value && value->type == XML_TEXT_NODE) { 173 if(value && value->type == XML_TEXT_NODE) {
174 property->value = sstrdup_a(a, scstr((const char*)value->content)).ptr; 174 property->value = sstrdup_a(a, scstr((const char*)value->content)).ptr;
175 } 175 }
176 sstr_t pname = sstrcat(2, sstr(property->namespace), sstr(property->name)); 176 if(property->namespace && property->name) {
177 ucx_map_sstr_put(properties, pname, property); 177 sstr_t pname = sstrcat(2, sstr(property->namespace), sstr(property->name));
178 free(pname.ptr); 178 ucx_map_sstr_put(properties, pname, property);
179 free(pname.ptr);
180 }
179 } 181 }
180 n = n->next; 182 n = n->next;
181 } 183 }
182 } 184 }
183 } 185 }

mercurial