diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-16 11:19:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-16 11:19:49 +0800 |
commit | 73716c500bc2f9dd2c0057b3d57ccc340d5e1017 (patch) | |
tree | 7afaaba758a67d380260e8aa999ecc1f251f3815 /modules/calendar/e-task-shell-backend.c | |
parent | 9cb166341e0231ba1e547f90838c512867f51141 (diff) | |
download | gsoc2013-evolution-73716c500bc2f9dd2c0057b3d57ccc340d5e1017.tar gsoc2013-evolution-73716c500bc2f9dd2c0057b3d57ccc340d5e1017.tar.gz gsoc2013-evolution-73716c500bc2f9dd2c0057b3d57ccc340d5e1017.tar.bz2 gsoc2013-evolution-73716c500bc2f9dd2c0057b3d57ccc340d5e1017.tar.lz gsoc2013-evolution-73716c500bc2f9dd2c0057b3d57ccc340d5e1017.tar.xz gsoc2013-evolution-73716c500bc2f9dd2c0057b3d57ccc340d5e1017.tar.zst gsoc2013-evolution-73716c500bc2f9dd2c0057b3d57ccc340d5e1017.zip |
Fix some potential null pointer dereferences.
Caught by the Clang Static Analyzer.
Diffstat (limited to 'modules/calendar/e-task-shell-backend.c')
-rw-r--r-- | modules/calendar/e-task-shell-backend.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/modules/calendar/e-task-shell-backend.c b/modules/calendar/e-task-shell-backend.c index d20a359e7d..1a8bee5a03 100644 --- a/modules/calendar/e-task-shell-backend.c +++ b/modules/calendar/e-task-shell-backend.c @@ -431,9 +431,11 @@ task_shell_backend_handle_uri_cb (EShellBackend *shell_backend, client = auth_new_cal_from_source (source, source_type); if (client == NULL || !e_cal_open (client, TRUE, &error)) { - g_printerr ("%s\n", error->message); + if (error != NULL) { + g_printerr ("%s\n", error->message); + g_error_free (error); + } g_object_unref (source_list); - g_error_free (error); goto exit; } |