diff options
author | Mike Newman <MikeGTN@src.gnome.org> | 2003-01-17 07:46:11 +0000 |
---|---|---|
committer | Mike Newman <MikeGTN@src.gnome.org> | 2003-01-17 07:46:11 +0000 |
commit | 0e338ba3e0fa03b28664448af0cea686c5e6c26d (patch) | |
tree | 83a76542a48cdd18d00d0327310be7b1229d6882 /src | |
parent | Add series id. (diff) | |
download | zenity-0e338ba3e0fa03b28664448af0cea686c5e6c26d.tar.gz zenity-0e338ba3e0fa03b28664448af0cea686c5e6c26d.tar.bz2 zenity-0e338ba3e0fa03b28664448af0cea686c5e6c26d.zip |
Fix a segfault in the --list if no data is supplied to populate
the tree.
Diffstat (limited to 'src')
-rw-r--r-- | src/tree.c | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -124,7 +124,13 @@ zenity_tree (ZenityData *data, ZenityTreeData *tree_data) data->exit_code = -1; return; } - + + if (tree_data->data == NULL) { + g_printerr (_("No contents specified for --list\n")); + data->exit_code = -1; + return; + } + glade_xml_signal_autoconnect (glade_dialog); dialog = glade_xml_get_widget (glade_dialog, "zenity_tree_dialog"); |