From ac4200fa46eebfc9227130739ae7f867e3fd0a20 Mon Sep 17 00:00:00 2001 From: Sergey Poznyakoff Date: Thu, 7 Nov 2013 13:46:12 +0200 Subject: Fix interval initialization from the module_init function. * doc/vmod-binlog.3: Update. * src/binlogsel.c (interval) : Remove const. (interval_add): duplicate the name. * src/xalloc.c (xstrdup): New function. * src/xalloc.h: Likewise. --- src/xalloc.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/xalloc.c') diff --git a/src/xalloc.c b/src/xalloc.c index d12a04c..6ab6802 100644 --- a/src/xalloc.c +++ b/src/xalloc.c @@ -49,5 +49,10 @@ xmemdup(void const *p, size_t s) return memcpy(xmalloc(s), p, s); } +char * +xstrdup(const char *s) +{ + return xmemdup(s, strlen(s) + 1); +} -- cgit v1.2.1