summaryrefslogtreecommitdiff
path: root/tests/libebook
diff options
context:
space:
mode:
authorДилян Палаузов <git-dpa@aegee.org>2019-07-07 16:55:24 +0000
committerMilan Crha <mcrha@redhat.com>2019-07-12 11:00:37 +0200
commit5e89586230e91b66f7610c316d05e2f12e78341a (patch)
treeafc3710f1dc800ab68d5adbab9be748264285026 /tests/libebook
parent58ce6c4ddffe02d2fb66687d825a12ed4ea373e9 (diff)
downloadevolution-data-server-5e89586230e91b66f7610c316d05e2f12e78341a.tar.gz
M!22 - Ignore the return value of g_string_append()
Calling “x = g_string_append (x, y)” is equivalent to “g_string (x, y)”. Or take it into account, when this leads to shorter code. Likewise for g_string_append_unichar(). Use the return value fo g_string_append(), when this makes the code sherter. In camel_content_disposition_format: skip a realloc() call. In camel-sasl-ntlm.c: skip a g_string_append_len() call. Closes https://gitlab.gnome.org/GNOME/evolution-data-server/merge_requests/22
Diffstat (limited to 'tests/libebook')
-rw-r--r--tests/libebook/vcard/dump-vcard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/libebook/vcard/dump-vcard.c b/tests/libebook/vcard/dump-vcard.c
index ad6f58305..ac492c3b8 100644
--- a/tests/libebook/vcard/dump-vcard.c
+++ b/tests/libebook/vcard/dump-vcard.c
@@ -40,7 +40,7 @@ main (gint argc,
while (!feof (fp)) {
gchar buf[1024];
if (fgets (buf, sizeof (buf), fp))
- str = g_string_append (str, buf);
+ g_string_append (str, buf);
}
fclose (fp);