2011-10-18 Andrew Stubbs <ams@codesourcery.com>
gcc/
* config/arm/driver-arm.c (host_detect_local_cpu): Close the file
before exiting.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@180168
138bc75d-0d04-0410-961f-
82ee72b054a4
{
const char *val = NULL;
char buf[128];
- FILE *f;
+ FILE *f = NULL;
bool arch;
const struct vendor_cpu *cpu_table = NULL;
unsigned int opt;
const char *search[] = {NULL, "arch"};
- fclose (f);
+ if (f)
+ fclose (f);
search[0] = argv[0];
for (opt = 0; opt < ARRAY_SIZE (search); opt++)