diff options
Diffstat (limited to 'libglusterfs/src/spec.y')
-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 f0a0caea1..a1d0c3ff4 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'; |