Fixing boundary condition for -O .bag

This commit is contained in:
Jeremy Leibs 2010-07-15 07:15:40 +00:00
parent 1c6be6a6ad
commit 3782b8552d
1 changed files with 1 additions and 1 deletions

View File

@ -298,7 +298,7 @@ void Recorder::updateFilenames() {
ind = prefix.rfind(".bag");
}
if (prefix.length() > 0)
if (prefix.length() >= 0)
parts.push_back(prefix);
if (options_.append_date)
parts.push_back(timeToStr(ros::WallTime::now()));