CamelPOP3Folder: Fix a potential g_object_unref(NULL) call
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Tue, 3 Dec 2013 19:55:29 +0000 (14:55 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 3 Dec 2013 19:55:29 +0000 (14:55 -0500)
commit1161f3fbc1f6018fbc163b2f3078c5938f983c19
treeb389681d338f4d4160a83ce34595bb81fad0a70f
parent097bbd1151bb0d7641c78c1411a65d0603dc0932
CamelPOP3Folder: Fix a potential g_object_unref(NULL) call

If all the branch conditions in this function evaluate to FALSE, the
stream is never set, and hence g_object_unref(NULL) is called on exiting
the function.

Found by scan-build.

https://bugzilla.gnome.org/719533
camel/providers/pop3/camel-pop3-folder.c