From b62256feda8de333f14439d305f70f30c5e15a19 Mon Sep 17 00:00:00 2001 From: OBATA Akio Date: Sat, 8 Feb 2020 16:24:57 +0900 Subject: Simplify string duplication Signed-off-by: OBATA Akio (cherry picked from commit c4f584b28d0290d1b8e78162ee548b5ab70cb143) --- src/get-carddav-report.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/get-carddav-report.c b/src/get-carddav-report.c index b44fd2c..c88a9ae 100644 --- a/src/get-carddav-report.c +++ b/src/get-carddav-report.c @@ -147,7 +147,7 @@ static gchar* carddav_dirlist(carddav_settings* settings, carddav_error* error) href = get_tag("d:href", tmp_report); } pos = strstr(tmp_report, href); - all_href = g_strdup_printf(""); + all_href = g_strdup(""); while ((href != NULL) && (pos != NULL)) { href = get_tag(ELEM_HREF, pos); /* Maybe namespace prefixed */ -- cgit v1.2.1