Don't increment an iterator if it's past the end

Found by coverity
This commit is contained in:
Alexander van Gessel 2013-12-08 03:56:14 +01:00
parent 095adba856
commit c217ce7a12

View File

@ -441,10 +441,10 @@ theme::label::label(const config& cfg) :
++c;
if(c != rgb_vec.end()){
g = (atoi(c->c_str()));
++c;
}else{
g=0;
}
++c;
if(c != rgb_vec.end()){
b=(atoi(c->c_str()));
}else{