From: Adam Szalkowski Date: Mon, 4 Sep 2006 13:02:55 +0000 (+0000) Subject: oops X-Git-Url: http://nsz.repo.hu/git/?a=commitdiff_plain;h=a0cb17cfb864ebd158ba2ecff6eb9c264e7dc2ba;p=libfirm oops --- diff --git a/ir/be/beprofile.c b/ir/be/beprofile.c index 9e0e30fed..2c0937420 100644 --- a/ir/be/beprofile.c +++ b/ir/be/beprofile.c @@ -287,6 +287,10 @@ be_profile_read(char * filename) size_t ret; f = fopen(filename, "r"); + if(f == NULL) { + perror("opening of profile data failed"); + return; + } /* check magic */ ret = fread(buf, 8, 1, f);