Commits

Jeremy Sandell committed 199c5cb

braces

  • Participants
  • Parent commits aa64a4b
  • Branches refactoring

Comments (0)

Files changed (1)

                 line != lines.end(); line++)
             {
                 name = (*line).substr(0, 3);
+
                 if(name.length() != 3)
+                {
                     continue;
+                }
 
                 fields = util::split((*line), fieldsep, fields);
+
                 this->push(name, fields);
+
                 fields.clear();
             }
         }
         else
+        {
             throw Exception("Corrupted MSH segment. (second pass)");
+        }
     }
     else
+    {
         throw Exception("Corrupted MSH segment.(first pass)");
+    }
 }
 
 bool message::contains(const std::string &name)