| 421 | } |
| 422 | |
| 423 | void |
| 424 | add_hash_param(GHashTable * hash, const char *name, const char *value) |
| 425 | { |
| 426 | CRM_CHECK(hash != NULL, return); |
| 427 | |
| 428 | crm_trace("adding: name=%s value=%s", crm_str(name), crm_str(value)); |
| 429 | if (name == NULL || value == NULL) { |
| 430 | return; |
| 431 | |
| 432 | } else if (safe_str_eq(value, "#default")) { |
| 433 | return; |
| 434 | |
| 435 | } else if (g_hash_table_lookup(hash, name) == NULL) { |
| 436 | g_hash_table_insert(hash, strdup(name), strdup(value)); |
| 437 | } |
| 438 | } |
no outgoing calls
no test coverage detected