Fix wrong variable in for loop
[claws.git] / src / plugins / vcalendar / libical / libical / icalcomponent.c
index 26754b2..b723086 100644 (file)
@@ -1082,7 +1082,7 @@ icalcomponent_begin_component(icalcomponent* component,icalcomponent_kind kind)
 
     icalerror_check_arg_re( (component!=0),"component",icalcompiter_null);
 
-    for( i = pvl_head(impl->components); i != 0; i = pvl_next(itr.iter)) {
+    for( i = pvl_head(impl->components); i != 0; i = pvl_next(i)) {
        
        icalcomponent *c =  (icalcomponent*) pvl_data(i);