aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/importers
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2011-09-30 21:39:57 +0800
committerMilan Crha <mcrha@redhat.com>2011-09-30 21:39:57 +0800
commit4c56856e05c6ab1468fe8ace4b73ac31b333990b (patch)
tree98304dd391494a7f9cc1aecebb99fe3b0f328377 /addressbook/importers
parent2def4a73864c87c4dee25b04180c882e72a0fee1 (diff)
downloadgsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.gz
gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.tar.zst
gsoc2013-evolution-4c56856e05c6ab1468fe8ace4b73ac31b333990b.zip
Fix few 'may be used uninitialized' compiler warnings
Diffstat (limited to 'addressbook/importers')
-rw-r--r--addressbook/importers/evolution-vcard-importer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/addressbook/importers/evolution-vcard-importer.c b/addressbook/importers/evolution-vcard-importer.c
index be97f25c98..b35553943e 100644
--- a/addressbook/importers/evolution-vcard-importer.c
+++ b/addressbook/importers/evolution-vcard-importer.c
@@ -351,8 +351,7 @@ guess_vcard_encoding (const gchar *filename)
return VCARD_ENCODING_NONE;
}
- fgets (line, 4096, handle);
- if (line == NULL) {
+ if (fgets (line, 4096, handle) == NULL) {
fclose (handle);
g_print ("\n");
return VCARD_ENCODING_NONE;