summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorOBATA Akio <obache@wizdas.com>2020-02-08 16:24:57 +0900
committerOBATA Akio <obache@wizdas.com>2020-02-08 16:34:00 +0900
commitc4f584b28d0290d1b8e78162ee548b5ab70cb143 (patch)
treed75d9fb9d35f6bd343a51cc87ee5031ea838d3a9 /src
parent5c66fbf273a9878d9c5940a92bb2fcae2f59d4b5 (diff)
downloadlibcarddav-c4f584b28d0290d1b8e78162ee548b5ab70cb143.tar.gz
libcarddav-c4f584b28d0290d1b8e78162ee548b5ab70cb143.zip
Simplify string duplication
Signed-off-by: OBATA Akio <obache@wizdas.com>
Diffstat (limited to 'src')
-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 */