aboutsummaryrefslogtreecommitdiff
path: root/common.c
diff options
context:
space:
mode:
Diffstat (limited to 'common.c')
-rw-r--r--common.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/common.c b/common.c
index bd5184c..a735aeb 100644
--- a/common.c
+++ b/common.c
@@ -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)
{