diff c/utils.cpp @ 399:c389fae9689a

Added a class to read list of image instead of video. This is controlled by the use of the database-filename and folder-data parameters in the config file.
author Jean-Philippe Jodoin <jpjodoin@gmail.com>
date Mon, 29 Jul 2013 17:12:45 -0400
parents bc4ea09b1743
children bee0e7407af7
line wrap: on
line diff
--- a/c/utils.cpp	Mon Jul 29 13:46:07 2013 -0400
+++ b/c/utils.cpp	Mon Jul 29 17:12:45 2013 -0400
@@ -41,7 +41,7 @@
     getline(f, s);
   }
   
-  if (s[0] == ::commentChar)
+  if (!s.empty() && s[0] == ::commentChar)
     s.clear();
   return s;
 }