diff options
author | OBATA Akio <[email protected]> | 2020-02-08 16:24:57 +0900 |
---|---|---|
committer | OBATA Akio <[email protected]> | 2020-02-08 16:34:00 +0900 |
commit | c4f584b28d0290d1b8e78162ee548b5ab70cb143 (patch) | |
tree | d75d9fb9d35f6bd343a51cc87ee5031ea838d3a9 | |
parent | 5c66fbf273a9878d9c5940a92bb2fcae2f59d4b5 (diff) | |
download | libcarddav-c4f584b28d0290d1b8e78162ee548b5ab70cb143.tar.gz libcarddav-c4f584b28d0290d1b8e78162ee548b5ab70cb143.zip |
Simplify string duplication
Signed-off-by: OBATA Akio <[email protected]>
-rw-r--r-- | src/get-carddav-report.c | 2 |
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 */ |