* Escape a string so that it can be used as a value in a key-value pair * a configuration file. */
| 165 | * a configuration file. |
| 166 | */ |
| 167 | static char * |
| 168 | escape_quotes(const char *src) |
| 169 | { |
| 170 | char *result = escape_single_quotes_ascii(src); |
| 171 | |
| 172 | if (!result) |
| 173 | { |
| 174 | pg_log_error("out of memory"); |
| 175 | exit(1); |
| 176 | } |
| 177 | return result; |
| 178 | } |
no test coverage detected