Use NULL instead of 0 for pointers.

fopen(3) will return NULL in case it can't open the STREAM.
This commit is contained in:
araujo 2016-04-14 12:53:38 +00:00
parent 27f4c84ae1
commit 5b2a866b97

View File

@ -2008,7 +2008,7 @@ load_xilinx(char *name)
int c;
if (verbose) printf("Load firmware from file %s...\n", name);
if ((f = fopen(name, "r")) == 0)
if ((f = fopen(name, "r")) == NULL)
{
perror("Failed to open file");
exit(1);