projects
/
pspp-builds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Prevent crash under certain pathological results.
[pspp-builds.git]
/
src
/
ui
/
gui
/
variable-info-dialog.c
diff --git
a/src/ui/gui/variable-info-dialog.c
b/src/ui/gui/variable-info-dialog.c
index d00fcd5d55d15c37b3a292141e7ae8ec3f4eb706..ba9c043dcd53fb0eaf5cc5a8239f5636327cb838 100644
(file)
--- a/
src/ui/gui/variable-info-dialog.c
+++ b/
src/ui/gui/variable-info-dialog.c
@@
-76,6
+76,8
@@
populate_text (GtkTreeView *treeview, gpointer data)
GtkTextBuffer *textbuffer = gtk_text_view_get_buffer (GTK_TEXT_VIEW(data));
const struct variable *var = get_selected_variable (treeview);
+ if ( var == NULL)
+ return;
gstring = g_string_sized_new (200);
text = name_to_string (var, NULL);