aboutsummaryrefslogtreecommitdiffstats
path: root/coopgammad.c
diff options
context:
space:
mode:
authorMattias Andrée <maandree@kth.se>2024-07-18 00:00:18 +0200
committerMattias Andrée <maandree@kth.se>2024-07-18 00:00:18 +0200
commita34be09402fffe68f85fc0f8007f4489fd3a3a41 (patch)
treebca8c543d072ba6a3a9c0919c3e8023733fd9de0 /coopgammad.c
parentEmpty signed commit (diff)
downloadcoopgammad-a34be09402fffe68f85fc0f8007f4489fd3a3a41.tar.gz
coopgammad-a34be09402fffe68f85fc0f8007f4489fd3a3a41.tar.bz2
coopgammad-a34be09402fffe68f85fc0f8007f4489fd3a3a41.tar.xz
Update for libgamma 0.7.41.3.2
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r--coopgammad.c5
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) {