Commit 67463e6f authored by Philip Carns's avatar Philip Carns

minor bug fix to eof detection after log_getexe()


git-svn-id: https://svn.mcs.anl.gov/repos/darshan/trunk@130 3b7491f3-a168-0410-bf4b-c445ed680a29
parent 5dff1e2b
...@@ -322,14 +322,14 @@ int darshan_log_getexe(darshan_fd fd, char *buf, int *flag) ...@@ -322,14 +322,14 @@ int darshan_log_getexe(darshan_fd fd, char *buf, int *flag)
ret = gzread(fd, buf, (CP_EXE_LEN + 1)); ret = gzread(fd, buf, (CP_EXE_LEN + 1));
if (ret < (CP_EXE_LEN + 1)) if (ret < (CP_EXE_LEN + 1))
{ {
if (gzeof(fd))
{
*flag = 1;
}
perror("gzread"); perror("gzread");
return(-1); return(-1);
} }
*flag = 0; if (gzeof(fd))
*flag = 1;
else
*flag = 0;
return (0); return (0);
} }
......
Markdown is supported
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