From: Ralph Corderoy Date: Tue, 18 Oct 2016 12:37:14 +0000 (+0100) Subject: Replace getcpy() with mh_xstrdup() where the string isn't NULL. X-Git-Url: https://diplodocus.org/git/nmh/commitdiff_plain/82c05140c9784bddd74415f79c3b342ad908dceb?ds=sidebyside Replace getcpy() with mh_xstrdup() where the string isn't NULL. --- 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); }