diff options
author | Dan Winship <danw@src.gnome.org> | 2001-05-28 03:52:07 +0800 |
---|---|---|
committer | Dan Winship <danw@src.gnome.org> | 2001-05-28 03:52:07 +0800 |
commit | 618ce2988e65058388fb9581ea427f11399de5a2 (patch) | |
tree | c534cbdbb1f55b81b2705839d37c8cb8b0b86b95 /camel/camel-mime-utils.c | |
parent | 8b06ce05ebb8d110542eb21cdafa039c0ae03c4b (diff) | |
download | gsoc2013-evolution-618ce2988e65058388fb9581ea427f11399de5a2.tar.gz gsoc2013-evolution-618ce2988e65058388fb9581ea427f11399de5a2.tar.zst gsoc2013-evolution-618ce2988e65058388fb9581ea427f11399de5a2.zip |
Fix an fd leak
* tests/lib/messages.c (test_message_read_file): Fix an fd leak
* tests/lib/session.c, tests/lib/session.h: a CamelSession
subclass for the test programs.
* tests/lib/Makefile.am: include session.[ch]
* tests/folder/test*.c: Use a CamelTestSession from libcameltest
instead of cut+pasting everywhere.
* tests/misc/url.c (main): Update for a camel_url_new change at
some point.
* tests/*/.cvsignore: Add stuff.
* camel-mime-utils.c (rfc2047_encode_word): Fix a silly ==/!=
mixup.
svn path=/trunk/; revision=10023
Diffstat (limited to 'camel/camel-mime-utils.c')
-rw-r--r-- | camel/camel-mime-utils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camel/camel-mime-utils.c b/camel/camel-mime-utils.c index 3d915be1f7..b8ac8aae93 100644 --- a/camel/camel-mime-utils.c +++ b/camel/camel-mime-utils.c @@ -1239,7 +1239,7 @@ rfc2047_encode_word(GString *outstring, const char *in, int len, const char *typ g_string_append(outstring, ascii); } - if (ic == (iconv_t) -1) { + if (ic != (iconv_t) -1) { iconv_close(ic); } } |