diff c/utils.cpp @ 614:5e09583275a4

Merged Nicolas/trafficintelligence into default
author Mohamed Gomaa <eng.m.gom3a@gmail.com>
date Fri, 05 Dec 2014 12:13:53 -0500
parents c389fae9689a
children bee0e7407af7
line wrap: on
line diff
--- a/c/utils.cpp	Thu Apr 18 15:29:33 2013 -0400
+++ b/c/utils.cpp	Fri Dec 05 12:13:53 2014 -0500
@@ -41,7 +41,7 @@
     getline(f, s);
   }
   
-  if (s[0] == ::commentChar)
+  if (!s.empty() && s[0] == ::commentChar)
     s.clear();
   return s;
 }