diff options
Diffstat (limited to 'database/rrd.c')
-rw-r--r-- | database/rrd.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/database/rrd.c b/database/rrd.c index f91039ea5..df364419e 100644 --- a/database/rrd.c +++ b/database/rrd.c @@ -154,3 +154,15 @@ char *rrdset_cache_dir(RRDHOST *host, const char *id) { return ret; } +// ---------------------------------------------------------------------------- +// RRD - string management + +STRING *rrd_string_strdupz(const char *s) { + if(unlikely(!s || !*s)) return string_strdupz(s); + + char *tmp = strdupz(s); + json_fix_string(tmp); + STRING *ret = string_strdupz(tmp); + freez(tmp); + return ret; +} |