[gtk/pvs-fixes: 7/11] messagedialog: Don't initialize twice
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/pvs-fixes: 7/11] messagedialog: Don't initialize twice
- Date: Thu, 4 Feb 2021 05:41:10 +0000 (UTC)
commit 1e0ea21297b46ac8bc879ff2b23ed9d0d34b5d5f
Author: Matthias Clasen <mclasen redhat com>
Date: Thu Feb 4 00:25:36 2021 -0500
messagedialog: Don't initialize twice
We don't need to set these fields more than once.
Pointed out in https://www.viva64.com/en/b/0793/
gtk/gtkmessagedialog.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/gtk/gtkmessagedialog.c b/gtk/gtkmessagedialog.c
index faa100354e..af61f8cb55 100644
--- a/gtk/gtkmessagedialog.c
+++ b/gtk/gtkmessagedialog.c
@@ -454,8 +454,6 @@ gtk_message_dialog_init (GtkMessageDialog *dialog)
GtkSettings *settings;
gboolean use_caret;
- priv->has_primary_markup = FALSE;
- priv->has_secondary_text = FALSE;
priv->has_primary_markup = FALSE;
priv->has_secondary_text = FALSE;
priv->message_type = GTK_MESSAGE_OTHER;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]