projects
/
claws.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4228ee6
)
Fix CID 1491379: dereference before null check.
author
wwp
<subscript@free.fr>
Wed, 6 Oct 2021 07:53:47 +0000
(09:53 +0200)
committer
wwp
<subscript@free.fr>
Wed, 6 Oct 2021 07:54:28 +0000
(09:54 +0200)
src/addrcustomattr.c
patch
|
blob
|
history
diff --git
a/src/addrcustomattr.c
b/src/addrcustomattr.c
index d9933e52e242dc29fa13316b49b1be69ff56bd29..40d5ceb63b64a6760521e4d3bd5a21a255bf8357 100644
(file)
--- a/
src/addrcustomattr.c
+++ b/
src/addrcustomattr.c
@@
-360,7
+360,8
@@
static void custom_attr_window_add_attr(void)
{
gchar *new_attr = gtk_editable_get_chars(GTK_EDITABLE(custom_attr_window.add_entry),
0, -1);
- g_strstrip(new_attr);
+ if (new_attr)
+ g_strstrip(new_attr);
if (new_attr && *new_attr) {
GtkListStore *list_store = GTK_LIST_STORE(gtk_tree_view_get_model
(GTK_TREE_VIEW(custom_attr_window.attr_list)));