diff options
author | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-07-09 19:27:00 +0000 |
---|---|---|
committer | Johannes Hofmann <johannes.hofmann@gmx.de> | 2004-07-09 19:27:00 +0000 |
commit | 7f36e6e9a45086ea306aa6ac88deb5de3106e3a0 (patch) | |
tree | be4cb8e4bc6285419120fc328b236e4b89f40784 /src/PSEditor.cxx | |
parent | a22b493dae4d7c991b582aca565ef08b7a28ff13 (diff) |
make things work again
make things work again
Diffstat (limited to 'src/PSEditor.cxx')
-rw-r--r-- | src/PSEditor.cxx | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/PSEditor.cxx b/src/PSEditor.cxx index 76d3b4b..f6d0317 100644 --- a/src/PSEditor.cxx +++ b/src/PSEditor.cxx @@ -1,5 +1,5 @@ // -// "$Id: PSEditor.cxx,v 1.2 2004/07/09 18:28:19 hofmann Exp $" +// "$Id: PSEditor.cxx,v 1.3 2004/07/09 21:27:00 hofmann Exp $" // // PSEditor routines. // @@ -112,12 +112,7 @@ int PSEditor::load(char *f) { while (fgets(linebuf, 1024, fp) != NULL) { - ret1 = p1->parse(linebuf); - if (ret1 == 0 || ret1 == 2) { - ret2 = p2->parse(linebuf); - } - - if (!ret1 && !ret2) { + if (!p2->parse(linebuf) && !p1->parse(linebuf)) { ret = write(tmp_fd, linebuf, strlen(linebuf)); if (ret != strlen(linebuf)) { fprintf(stderr, "Error while writing to temporary file\n"); |