]> diplodocus.org Git - nmh/blobdiff - sbr/oauth_prof.c
Replace getcpy() with mh_xstrdup() where the string isn't NULL.
[nmh] / sbr / oauth_prof.c
index dc9bf2d0da0d41d470a71e4cbb979a29f1d25ff6..a3f2e54ac94f879b0e57301acdaf15b4936e3cdb 100644 (file)
@@ -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);
 }