From 82c05140c9784bddd74415f79c3b342ad908dceb Mon Sep 17 00:00:00 2001 From: Ralph Corderoy Date: Tue, 18 Oct 2016 13:37:14 +0100 Subject: [PATCH] Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- sbr/oauth_prof.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbr/oauth_prof.c b/sbr/oauth_prof.c index dc9bf2d0..a3f2e54a 100644 --- a/sbr/oauth_prof.c +++ b/sbr/oauth_prof.c @@ -74,7 +74,7 @@ update_svc_field(char **field, const char *base_name, const char *svc) const char *value = context_find(name); if (value != NULL) { free(*field); - *field = getcpy(value); + *field = mh_xstrdup(value); } free(name); } -- 2.56.0