summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/spec.y
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/spec.y')
-rw-r--r--libglusterfs/src/spec.y3
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';