fp might be NULL.
This commit is contained in:
parent
a4d1b17453
commit
a5599efd9c
1 changed files with 2 additions and 1 deletions
|
@ -95,7 +95,8 @@ int main(int ac, char **av)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
fclose(fp);
|
if(fp)
|
||||||
|
fclose(fp);
|
||||||
|
|
||||||
sem_id_arr = (int*)malloc(sizeof(int)*MAXIDS);
|
sem_id_arr = (int*)malloc(sizeof(int)*MAXIDS);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue