[nautilus] eel-stock-dialogs: Start and end va_list
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] eel-stock-dialogs: Start and end va_list
- Date: Wed, 29 Dec 2021 11:14:07 +0000 (UTC)
commit 130a676b088f4ae170e09c713de9f9d07a9c627c
Author: António Fernandes <antoniojpfernandes gmail com>
Date: Wed Dec 29 11:14:06 2021 +0000
eel-stock-dialogs: Start and end va_list
This got lost in the refactoring and results in it not being initialized.
Thanks to Abderrahim Kitouni for reporting.
eel/eel-stock-dialogs.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/eel/eel-stock-dialogs.c b/eel/eel-stock-dialogs.c
index e8568eb5d..8cf2efbcd 100644
--- a/eel/eel-stock-dialogs.c
+++ b/eel/eel-stock-dialogs.c
@@ -354,6 +354,7 @@ eel_show_simple_dialog (GtkWidget *parent,
"secondary-text", secondary_text,
NULL);
+ va_start (button_title_args, secondary_text);
response_id = 0;
while (1)
{
@@ -366,7 +367,7 @@ eel_show_simple_dialog (GtkWidget *parent,
gtk_dialog_set_default_response (GTK_DIALOG (dialog), response_id);
response_id++;
}
-
+ va_end (button_title_args);
gtk_widget_show_all (dialog);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]