[evolution] EComposerPrivate - Fix a possible uninitialized use of a variable
- From: Tomas Popela <tpopela src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] EComposerPrivate - Fix a possible uninitialized use of a variable
- Date: Mon, 11 Apr 2016 09:04:43 +0000 (UTC)
commit 7de95790826b0bbbf4c5335198d45adf60a0c7e1
Author: Tomas Popela <tpopela redhat com>
Date: Mon Apr 11 11:01:49 2016 +0200
EComposerPrivate - Fix a possible uninitialized use of a variable
composer/e-composer-private.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/composer/e-composer-private.c b/composer/e-composer-private.c
index 2f2cea0..278e1fd 100644
--- a/composer/e-composer-private.c
+++ b/composer/e-composer-private.c
@@ -1108,6 +1108,8 @@ composer_load_signature_cb (EMailSignatureComboBox *combo_box,
signature_to_insert, gtk_combo_box_get_active_id (GTK_COMBO_BOX (combo_box)));
insert_signature_in = signature_to_insert;
+ html_mode = e_html_editor_view_get_html_mode (view);
+
/* The signature has no content usually it means it is set to None. */
if (!contents)
goto insert;
@@ -1131,7 +1133,6 @@ composer_load_signature_cb (EMailSignatureComboBox *combo_box,
}
/* If inserting HTML signature in plain text composer we have to convert it. */
- html_mode = e_html_editor_view_get_html_mode (view);
if (is_html && !html_mode && !strstr (contents, "data-evo-signature-plain-text-mode")) {
gchar *inner_text;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]