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:
Marcelo Araujo 2016-04-14 12:53:38 +00:00
parent d11537c785
commit a5de41c600
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=297965

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);