do {
c = getc(fp);
if ((c == EOF) && (state == VALUE)) {
- LOGD("[%s:%d] VALUE state EOF\n", __func__, __LINE__);
+ DbgPrint("[%s:%d] VALUE state EOF\n", __func__, __LINE__);
state = END;
}
linelen++;
} while (c != EOF);
- fclose(fp);
+ if (fclose(fp) != 0)
+ ErrPrint("fclose: %s\n", strerror(errno));
return LB_STATUS_SUCCESS;
}