Index: trunk/BNC/src/ephemeris.cpp
===================================================================
--- trunk/BNC/src/ephemeris.cpp	(revision 11137)
+++ trunk/BNC/src/ephemeris.cpp	(revision 11148)
@@ -1184,5 +1184,6 @@
 // Constructor
 //////////////////////////////////////////////////////////////////////////////
-t_ephGlo::t_ephGlo(double rnxVersion, const QStringList &lines, const QString typeStr) {
+t_ephGlo::t_ephGlo(double rnxVersion, const QStringList &lines, const QString typeStr)
+  : t_ephGlo() { // all members initialized, e.g. _M_l5 (not in RINEX)
 
   setType(typeStr);
@@ -1840,4 +1841,9 @@
 unsigned int t_ephGlo::isUnhealthy() const {
 
+  // GLONASS-M/K: health flag ln of strings 3 and 5, evaluated like the MSB
+  // of Bn (GLONASS ICD 5.1, section 5.3: "Bn (ln)")
+  if (_M_M && (_M_l3 || _M_l5)) {
+    return 1;
+  }
   if (_almanac_health_availablility_indicator) {
     if ((_health == 0 && _almanac_health == 0)
