summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOBATA Akio <[email protected]>2020-02-08 16:24:57 +0900
committerMichele Calgaro <[email protected]>2020-02-09 16:26:48 +0900
commitb62256feda8de333f14439d305f70f30c5e15a19 (patch)
treec41839e0f497c6304f080e93ea1ef8a4ccd23a8d
parenta3aa3d51418c76674ad3084410d49c5ab3b90b48 (diff)
downloadlibcarddav-b62256feda8de333f14439d305f70f30c5e15a19.tar.gz
libcarddav-b62256feda8de333f14439d305f70f30c5e15a19.zip
Simplify string duplication
Signed-off-by: OBATA Akio <[email protected]> (cherry picked from commit c4f584b28d0290d1b8e78162ee548b5ab70cb143)
-rw-r--r--src/get-carddav-report.c2
1 files changed, 1 insertions, 1 deletions
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 */