degesch: introduce cstr_set()

This commit is contained in:
2018-01-08 22:15:29 +01:00
parent b4507b56af
commit 4586b0e1e4
2 changed files with 39 additions and 74 deletions

View File

@@ -51,6 +51,13 @@ init_openssl (void)
// --- To be moved to liberty --------------------------------------------------
static void
cstr_set (char **s, char *new)
{
free (*s);
*s = new;
}
static ssize_t
strv_find (const struct strv *v, const char *s)
{