From: Ben Gras Date: Mon, 21 Sep 2009 15:23:08 +0000 (+0000) Subject: fp might be NULL. X-Git-Tag: v3.1.5~114 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/dnssec-keyfromlabel.html?a=commitdiff_plain;h=a5599efd9c7986052f7f1ac23dad6c934aa04ac7;p=minix.git fp might be NULL. --- diff --git a/test/ipc/semget/semget05.c b/test/ipc/semget/semget05.c index 1c6b6108c..4b7e37419 100644 --- a/test/ipc/semget/semget05.c +++ b/test/ipc/semget/semget05.c @@ -95,7 +95,8 @@ int main(int ac, char **av) } } - fclose(fp); + if(fp) + fclose(fp); sem_id_arr = (int*)malloc(sizeof(int)*MAXIDS);