* input.c (add_file_to_cache_tab): Handle the case where fopen
returns NULL.
Signed-off-by: Dodji Seketeli <dodji@seketeli.org>
From-SVN: r207046
+2014-01-24 Dodji Seketeli <dodji@redhat.com>
+
+ * input.c (add_file_to_cache_tab): Handle the case where fopen
+ returns NULL.
+
2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
PR target/59929
{
FILE *fp = fopen (file_path, "r");
- if (ferror (fp))
- {
- fclose (fp);
- return NULL;
- }
+ if (fp == NULL)
+ return NULL;
unsigned highest_use_count = 0;
fcache *r = evicted_cache_tab_entry (&highest_use_count);