From adb87d107adbc89412ae83a3b43d99913633c2f1 Mon Sep 17 00:00:00 2001 From: Alexander A Oganezov Date: Tue, 3 Nov 2020 19:00:04 +0000 Subject: [PATCH] attempt #2 Signed-off-by: Alexander A Oganezov --- src/cart/crt_group.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cart/crt_group.c b/src/cart/crt_group.c index cd34960a63e..dcc45bf8dc9 100644 --- a/src/cart/crt_group.c +++ b/src/cart/crt_group.c @@ -337,7 +337,9 @@ grp_li_uri_set(struct crt_lookup_item *li, int tag, const char *uri) } for (i = 0; i < 255; i++) { - D_ASPRINTF(ui->ui_uri[i], "%s:%d", tmp_uri, base_port + i); + char *tag_uri; + D_ASPRINTF(tag_uri, "%s:%d", tmp_uri, base_port + i); + ui->ui_uri[i] = tag_uri; } D_FREE(tmp_uri);