fp might be NULL.

This commit is contained in:
Ben Gras 2009-09-21 15:23:08 +00:00
parent a4d1b17453
commit a5599efd9c

View file

@ -95,7 +95,8 @@ int main(int ac, char **av)
}
}
fclose(fp);
if(fp)
fclose(fp);
sem_id_arr = (int*)malloc(sizeof(int)*MAXIDS);