diff options
Diffstat (limited to 'coopgammad.c')
-rw-r--r-- | coopgammad.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/coopgammad.c b/coopgammad.c index 50ba53b..ecf4619 100644 --- a/coopgammad.c +++ b/coopgammad.c @@ -664,6 +664,7 @@ static int print_method_and_site(int query) { const char *restrict methodname = NULL; + const char *const_sitename; char *p; if (query == 1) { @@ -682,8 +683,8 @@ print_method_and_site(int query) } if (!sitename) - if ((sitename = libgamma_method_default_site(method))) - if (!(sitename = memdup(sitename, strlen(sitename) + 1))) + if ((const_sitename = libgamma_method_default_site(method))) + if (!(sitename = memdup(const_sitename, strlen(const_sitename) + 1))) return -1; if (sitename) { |