Fix looping in gtk_tree_store_init() waiting for zero random int.

* gtk/gtktreestore.c:
Fix looping in gtk_tree_store_init() waiting for zero random int.
This commit is contained in:
Padraig O'Briain
2001-09-10 15:37:03 +00:00
parent e083ca9e45
commit 63a9502159
8 changed files with 36 additions and 1 deletions

View File

@ -248,7 +248,7 @@ gtk_tree_store_init (GtkTreeStore *tree_store)
{
tree_store->stamp = g_random_int ();
}
while (tree_store->stamp != 0);
while (tree_store->stamp == 0);
tree_store->sort_list = NULL;
tree_store->sort_column_id = -2;
}