libfmjni: Resolve fread assignment to condition cast
* libfm_jni/ConfFileParser.cpp:480:21:
error: using the result of an assignment
as a condition without parentheses
Change-Id: Ib9526734ec96e029f89801ec9b008296a7e2c0fc
diff --git a/ConfFileParser.cpp b/ConfFileParser.cpp
index 5897992..04c9c0d 100644
--- a/ConfFileParser.cpp
+++ b/ConfFileParser.cpp
@@ -477,7 +477,7 @@
unsigned int i;
bool has_carriage_rtn = false;
- while (bytes_read = fread(buf, 1, MAX_LINE_LEN, fp)) {
+ while ((bytes_read = fread(buf, 1, MAX_LINE_LEN, fp))) {
for (i = 0; i < bytes_read; i++) {
if (line_len == line_allocated) {
line_allocated += 25;