diff options
author | Milan Crha <mcrha@redhat.com> | 2012-11-30 22:29:34 +0800 |
---|---|---|
committer | Milan Crha <mcrha@redhat.com> | 2012-11-30 22:30:45 +0800 |
commit | ab3f65a15e1b6fe5bdf488e6e879899e283ccc43 (patch) | |
tree | ac594d423506e1fa1d47fbf057a1ec71947bf7a5 /widgets/table/e-cell-text.c | |
parent | 1eb7481305d0feda31538d072c206aab5dbdeabd (diff) | |
download | gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.gz gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.bz2 gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.lz gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.xz gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.tar.zst gsoc2013-evolution-ab3f65a15e1b6fe5bdf488e6e879899e283ccc43.zip |
Address couple issues found by a Coverity scan
Diffstat (limited to 'widgets/table/e-cell-text.c')
-rw-r--r-- | widgets/table/e-cell-text.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/widgets/table/e-cell-text.c b/widgets/table/e-cell-text.c index 4d685ae814..e871ac1dc0 100644 --- a/widgets/table/e-cell-text.c +++ b/widgets/table/e-cell-text.c @@ -889,7 +889,7 @@ ect_event (ECellView *ecell_view, return_val = TRUE; /* Fallthrough */ case GDK_KEY_RELEASE: - preedit_len = edit->preedit_length; + preedit_len = edit_display ? edit->preedit_length : 0; if (edit_display && edit->im_context && gtk_im_context_filter_keypress (\ edit->im_context, @@ -1798,7 +1798,7 @@ e_cell_text_commit_cb (GtkIMContext *context, ECellTextView *tv) { CellEdit *edit = tv->edit; - ETextEventProcessorCommand command; + ETextEventProcessorCommand command = { 0 }; if (g_utf8_validate (str, strlen (str), NULL)) { command.action = E_TEP_INSERT; @@ -2541,7 +2541,7 @@ paste_received (GtkClipboard *clipboard, edit = (CellEdit *) data; if (text && g_utf8_validate (text, strlen (text), NULL)) { - ETextEventProcessorCommand command; + ETextEventProcessorCommand command = { 0 }; command.action = E_TEP_INSERT; command.position = E_TEP_SELECTION; command.string = (gchar *) text; @@ -2603,7 +2603,7 @@ e_cell_text_set_selection (ECellView *cell_view, { ECellTextView *ectv; CellEdit *edit; - ETextEventProcessorCommand command1, command2; + ETextEventProcessorCommand command1 = { 0 }, command2 = { 0 }; g_return_val_if_fail (cell_view != NULL, FALSE); @@ -2688,7 +2688,7 @@ e_cell_text_copy_clipboard (ECellView *cell_view, { ECellTextView *ectv; CellEdit *edit; - ETextEventProcessorCommand command; + ETextEventProcessorCommand command = { 0 }; g_return_if_fail (cell_view != NULL); @@ -2722,7 +2722,7 @@ e_cell_text_paste_clipboard (ECellView *cell_view, { ECellTextView *ectv; CellEdit *edit; - ETextEventProcessorCommand command; + ETextEventProcessorCommand command = { 0 }; g_return_if_fail (cell_view != NULL); @@ -2756,7 +2756,7 @@ e_cell_text_delete_selection (ECellView *cell_view, { ECellTextView *ectv; CellEdit *edit; - ETextEventProcessorCommand command; + ETextEventProcessorCommand command = { 0 }; g_return_if_fail (cell_view != NULL); |