| 204 | } |
| 205 | |
| 206 | char *tal_strdup_or_null(const tal_t *ctx, const char *str) |
| 207 | { |
| 208 | if (!str) { |
| 209 | /* You might have taken NULL; that's legal! Release now. */ |
| 210 | taken(str); |
| 211 | return NULL; |
| 212 | } |
| 213 | return tal_strdup(ctx, str); |
| 214 | } |
| 215 | |
| 216 | int tmpdir_mkstemp(const tal_t *ctx, const char *template TAKES, char **created) |
| 217 | { |
no test coverage detected