Add an extra sanity check on the children argument.

This commit is contained in:
ramiro 1998-04-30 01:48:30 +00:00
Родитель 70bf8c2dd9
Коммит a0a877255e
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -763,7 +763,7 @@ XfeDestroyMenuWidgetTree(WidgetList children,
{
int i;
if (num_children <= 0)
if ((num_children <= 0) || (children == NULL))
{
return;
}