commit 4ac63d61b65ba7bcb45c764dd3966f6bb073fb76
parent 6a5bda504a3cd5b62eef412426bf38d719cd187f
Author: Christian Grothoff <christian@grothoff.org>
Date: Fri, 13 Dec 2024 15:07:39 +0100
-guard against NPE
Diffstat:
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/anastasis/anastasis-gtk_action.c b/src/anastasis/anastasis-gtk_action.c
@@ -1472,9 +1472,13 @@ action_secret_editing (void)
&end,
true);
if (0 != strcmp (old,
- text))
+ NULL != text
+ ? text
+ : ""))
gtk_text_buffer_set_text (tb,
- text,
+ NULL != text
+ ? text
+ : "",
-1);
}
update_label ("anastasis_gtk_secret_file_name_label",