projects
/
claws.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fixed segfault
[claws.git]
/
src
/
summaryview.c
diff --git
a/src/summaryview.c
b/src/summaryview.c
index 0f3df2fe8490b9af52902b89d562d9a9cc39bde3..a43e010d869fad60565e67b65b8671d31a7f710e 100644
(file)
--- a/
src/summaryview.c
+++ b/
src/summaryview.c
@@
-1313,6
+1313,8
@@
guint summary_get_current_msgnum(SummaryView *summaryview)
if (!summaryview->selected)
return 0;
msginfo = gtk_ctree_node_get_row_data(ctree, summaryview->selected);
if (!summaryview->selected)
return 0;
msginfo = gtk_ctree_node_get_row_data(ctree, summaryview->selected);
+ if (!msginfo)
+ return 0;
return msginfo->msgnum;
}
return msginfo->msgnum;
}