Simplify string duplication

Signed-off-by: OBATA Akio <obache@wizdas.com>
(cherry picked from commit c4f584b28d)
r14.0.x
OBATA Akio 4 years ago committed by Michele Calgaro
parent a3aa3d5141
commit b62256feda
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -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 */

Loading…
Cancel
Save