diff options
author | Anand V. Avati <avati@amp.gluster.com> | 2009-04-01 21:54:43 +0530 |
---|---|---|
committer | Anand V. Avati <avati@amp.gluster.com> | 2009-04-01 22:04:03 +0530 |
commit | 25d415e1917df1cac363142fb6fd3768f3e7d2af (patch) | |
tree | 5fa2bc2ade53615dae06f2f3947611fff3771093 /libglusterfs/src | |
parent | 978174fd7362b6c425db78c8d316b96050603844 (diff) |
use (fgetc() != EOF) instaed of feof() in parser
Signed-off-by: Anand V. Avati <avati@amp.gluster.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r-- | libglusterfs/src/spec.y | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/libglusterfs/src/spec.y b/libglusterfs/src/spec.y index f0a0caea122..a1d0c3ff4e0 100644 --- a/libglusterfs/src/spec.y +++ b/libglusterfs/src/spec.y @@ -487,8 +487,7 @@ parse_backtick (FILE *srcfp, FILE *dstfp) return -1; } - while (!feof (srcfp)) { - character = fgetc (srcfp); + while ((character = fgetc (srcfp)) != EOF) { if ((character == '`') && !escaped) { if (in_backtick) { cmd[i] = '\0'; |