Commit a08e2a56 authored by Adam Barta's avatar Adam Barta
Browse files

parser

parent be78ea55
Showing with 1 addition and 1 deletion
+1 -1
......@@ -257,12 +257,12 @@ int start_parser(struct p_parser *p, char *f) {
temp = NULL;
buffer = NULL;
file = fopen(f,"r");
fd = fileno(file);
if (file == NULL){
fprintf(stderr,"Error Reading File: %s\n",f);
return errno;
}
fd = fileno(file);
if (stat(f,&file_stats) != 0)
return errno;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment