Safe properties: returns "{}" if NULL. */
| 179 | |
| 180 | /* Safe properties: returns "{}" if NULL. */ |
| 181 | static const char *safe_props(const char *s) { |
| 182 | return (s && s[0]) ? s : "{}"; |
| 183 | } |
| 184 | |
| 185 | /* Duplicate a string onto the heap. */ |
| 186 | static char *heap_strdup(const char *s) { |
no outgoing calls
no test coverage detected