git-svn-id: svn://svn.icms.temple.edu/lammps-ro/trunk@5125 f3b2605a-c512-4ea7-a41b-209d697bcdaa

This commit is contained in:
sjplimp 2010-10-25 20:26:35 +00:00
parent 5b5aedb034
commit fe8e6e1e59
1 changed files with 1 additions and 1 deletions

View File

@ -355,7 +355,7 @@ void PairTable::read_table(Table *tb, char *file, char *keyword)
while (1) {
if (fgets(line,MAXLINE,fp) == NULL)
error->one("Did not find keyword in table file");
if (strspn(line," \t\n") == strlen(line)) continue; // blank line
if (strspn(line," \t\n\r") == strlen(line)) continue; // blank line
if (line[0] == '#') continue; // comment
if (strstr(line,keyword) == line) break; // matching keyword
fgets(line,MAXLINE,fp); // no match, skip section