Struct Array

in my .c file i have a struct atop of the program defined as follows:

#define MAX 10
int curtab;

static struct tab {
	int count;
	int use;
} tab[MAX];

with the initial function following it like so:

int tab_create(int init_count)
{
       int i;
       for(i=0; i < MAX; i++)
	{
		if(tab.use != 1)
		{
			tab.use = 1; /* true */
			tab.count = init_count;
			curtab = i;
			i = MAX; /* break */
		}
	}
       return (curtab);
}

but I find I receive a Seg-Fault error at

if(tab.use != 1)

Why does this occur?

It does not segfault on my system. The problem must be elsewhere.