summaryrefslogtreecommitdiffstats
path: root/libglusterfs
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs')
-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 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';